Provides the runtime environment for the MCP server, enabling high-performance JavaScript/TypeScript execution
Enables project creation directly from the GitHub template repository via 'bun create' command
Provides type-safe development environment for creating MCP components including tools, prompts, and resources
Elysia MCP Starter
A starter template for building MCP (Model Context Protocol) servers using Elysia and Bun runtime.
This starter template is based on the elysia-mcp plugin, which provides comprehensive ElysiaJS integration for the Model Context Protocol with HTTP transport support.
Purpose
This repository provides a foundation for creating MCP servers that can be used with LLM clients like Claude Desktop, Cody, or other MCP-compatible applications. It demonstrates how to implement:
- Tools: Functions that can be called by LLMs (e.g., calculator)
- Prompts: Reusable prompt templates
- Resources: Dynamic data sources that can be accessed by LLMs
Directory Structure
Getting Started
Option 1: Using Bun Create (Recommended)
Option 2: Clone Repository
- Clone or use this template:
- Install dependencies:
- Start the development server:
The MCP server will be available at:
- Server:
http://localhost:3000
- MCP endpoint:
http://localhost:3000/mcp
Development
- Development server:
bun run dev
(with auto-reload) - Production server:
bun run start
- Inspect MCP server:
bun run inspect
(opens MCP inspector)
Adding New Components
Tools
Add new tools in src/tools/
and register them in src/index.ts
:
Prompts
Add new prompts in src/prompts/
and register them in src/index.ts
:
Resources
Add new resources in src/resources/
and register them in src/index.ts
:
Using with LLM Clients
Configure your MCP-compatible client to connect to http://localhost:3000/mcp
to access the tools, prompts, and resources provided by this server.
MCP Client Configuration
Add the following configuration to your MCP client's configuration file:
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json
):
For Cursor (~/.cursor/mcp.json
):
For Cody (VS Code settings):
Replace "elysia-mcp-starter"
with your preferred server name and update the URL if you're running on a different port.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A template for building Model Context Protocol servers using Elysia and Bun runtime, enabling LLM clients like Claude Desktop and Cody to access custom tools, prompts, and data resources.
Related MCP Servers
- AsecurityAlicenseAqualityA production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.Last updated -11JavaScriptMIT License
- AsecurityFlicenseAqualityA TypeScript-based template for developing Model Context Protocol servers with features like dependency injection and service-based architecture, facilitating the creation and integration of custom data processing tools.Last updated -12TypeScript
- -security-license-qualityA modern, lightning-fast starter template for building Model Context Protocol applications with Bun, enabling developers to create MCP servers with TypeScript support, validation, and environment configuration.Last updated -TypeScript
- AsecurityAlicenseAqualityA production-ready template for building Model Context Protocol servers with TypeScript, featuring Bun for fast development, Biome for linting, and an organized structure for creating MCP tools.Last updated -11TypeScriptMIT License