fastify-mcp-server
by NEDDL·★ 7·Score 41
High-performance MCP server built with Fastify, TypeScript, and functional programming principles.
Overview
Fastify MCP Server is a production-grade implementation of the Model Context Protocol specification, designed for AI agents and LLM applications. Built on Fastify, it delivers high performance with features like bearer token authentication, Kubernetes health checks, metrics endpoints, and auto-discovery of MCP capabilities. The server uses a functional programming approach and maintains type safety throughout.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
When you need a production-ready, high-performance MCP server with TypeScript support, session isolation, and enterprise features like authentication and metrics.
When NOT to choose this
If you need a simpler MCP implementation without session management or if you're not using Fastify/TypeScript in your stack.
Comparable tools
Installation
Installation:
- Clone the repository:
git clone https://github.com/NEDDL/fastify-mcp-server.git - Navigate to the project:
cd fastify-mcp-server - Install dependencies:
pnpm install - Build the project:
pnpm build - Configure environment variables by copying
.env.exampleto.env
For Claude Desktop integration, add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"fastify-mcp-local": {
"command": "node",
"args": ["/absolute/path/to/fastify-mcp-server/dist/mcp-stdio.js"]
}
}
}FAQ
- What transports does this MCP server support?
- The server supports both stdio and HTTP transports. For local development with Claude Desktop, stdio is recommended. For production scenarios, the HTTP transport with bearer token authentication is available.
- How does session management work?
- The server creates a fresh McpServer instance per connection using session IDs. Sessions are tracked by UUID and automatically cleaned up after 30 minutes of inactivity, with a cleanup process running every 5 minutes.
Compare fastify-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.