Elysia MCP

v0.1.1Developer Toolsstable

A comprehensive ElysiaJS plugin for building Model Context Protocol (MCP) servers with HTTP transport, session management, and support for tools, resources, and prompts.

elysiaelysia-pluginmcpmodelcontextprotocolplugin
Share:
41
Stars
0
Downloads
0
Weekly
0/5

What is Elysia MCP?

Elysia MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to comprehensive elysiajs plugin for building model context protocol (mcp) servers with http transport, session management, and support for tools, resources, and prompts.

A comprehensive ElysiaJS plugin for building Model Context Protocol (MCP) servers with HTTP transport, session management, and support for tools, resources, and prompts.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A comprehensive ElysiaJS plugin for building Model Context P

Use Cases

Build MCP servers with ElysiaJS framework.
Support HTTP transport with session management.
Deploy tools, resources, and prompts through streaming.
kerlos

Maintainer

LicenseMIT License
Languagetypescript
Versionv0.1.1
UpdatedApr 30, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y elysia-mcp

Manual Installation

npx -y elysia-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Elysia MCP

Elysia MCP is a comprehensive ElysiaJS plugin that lets TypeScript developers build Model Context Protocol servers using the fast Bun-based Elysia web framework, with full support for HTTP transport, Server-Sent Events streaming, session management, and all four MCP capability types — tools, resources, prompts, and logging. Rather than building an MCP server from scratch, developers add the elysia-mcp plugin to an existing or new Elysia application and register their capabilities through a clean TypeScript API. It is particularly well-suited for teams that want to expose internal APIs, databases, or business logic as MCP-compatible tools that AI assistants can call.

Prerequisites

  • Bun runtime installed (bun.sh) — Elysia is designed for Bun
  • Node.js 18+ is an alternative but Bun is recommended for performance
  • An existing ElysiaJS project or willingness to create one
  • Basic TypeScript knowledge
  • An MCP-compatible client (Claude Desktop, Cursor, etc.) for testing
1

Create a new Elysia MCP project (quickstart)

Use the official starter template to scaffold a new project with elysia-mcp already configured.

bun create https://github.com/kerlos/elysia-mcp-starter my-mcp-project
cd my-mcp-project
bun install
2

Or install elysia-mcp in an existing project

If you already have an Elysia project, add the plugin as a dependency.

bun add elysia-mcp
# or with npm:
npm install elysia-mcp
3

Add the MCP plugin to your Elysia app

Import the mcp plugin and register it with your Elysia instance. Use the setupServer callback to register tools, resources, and prompts.

import { Elysia } from 'elysia';
import { mcp } from 'elysia-mcp';
import { z } from 'zod';

const app = new Elysia()
  .use(
    mcp({
      serverInfo: { name: 'my-mcp-server', version: '1.0.0' },
      setupServer: async (server) => {
        server.registerTool(
          'echo',
          { description: 'Echoes back text', inputSchema: { text: z.string() } },
          async (args) => ({ content: [{ type: 'text', text: `Echo: ${args.text}` }] })
        );
      }
    })
  )
  .listen(3000);

console.log('MCP server running at http://localhost:3000/mcp');
4

Start the server

Run your Elysia application. The MCP endpoint will be available at /mcp by default.

bun run src/index.ts
# or
bun dev
5

Connect an MCP client

Connect Claude Code or Claude Desktop to your running Elysia MCP server using the HTTP transport.

claude mcp add --transport http my-mcp-server http://localhost:3000/mcp

Elysia MCP Examples

Client configuration

Claude Desktop configuration connecting to a locally running Elysia MCP server via HTTP (using mcp-remote for SSE transport).

{
  "mcpServers": {
    "elysia-mcp": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:3000/mcp"]
    }
  }
}

Prompts to try

Once your Elysia MCP server is running with tools registered, test it with these prompts in your MCP client.

- "Call the echo tool with the text 'hello world'"
- "What tools are available on this MCP server?"
- "List all resources exposed by this server"
- "Use the [your-tool-name] tool to [your tool's function]"
- "Show me the available prompts on this server"

Troubleshooting Elysia MCP

MCP client cannot connect to the server endpoint

Ensure your Elysia app is running and listening on the expected port. The default MCP endpoint is http://localhost:3000/mcp (or your configured basePath). Test with curl: curl -s http://localhost:3000/mcp should return a response.

Type errors when registering tools with Zod schemas

Ensure you are using the same version of Zod that elysia-mcp expects. Run 'bun add zod' to install it, and import z from 'zod' in your file. The inputSchema fields must be Zod schema objects, not plain JSON Schema.

Session-related errors with multiple concurrent clients

By default, elysia-mcp tracks sessions. If you are building a stateless service or hitting session management issues, set stateless: true in the plugin options to disable session tracking entirely.

Frequently Asked Questions about Elysia MCP

What is Elysia MCP?

Elysia MCP is a Model Context Protocol (MCP) server that comprehensive elysiajs plugin for building model context protocol (mcp) servers with http transport, session management, and support for tools, resources, and prompts. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Elysia MCP?

Install via npm with the command: npx -y elysia-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Elysia MCP?

Elysia MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Elysia MCP free to use?

Yes, Elysia MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "elysia-mcp-plugin": { "command": "npx", "args": ["-y", "elysia-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Elysia MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides