MCP Catalogs
Home

fastify-mcp-server

by NEDDL·7·Score 41

High-performance MCP server built with Fastify, TypeScript, and functional programming principles.

developer-toolsai-llmops-infra
1
Forks
0
Open issues
1 mo ago
Last commit
2d ago
Indexed

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:

you:Building AI agent platforms requiring secure MCP server connections
you:Integrating LLMs with external tools and data sources
you:Creating enterprise-grade MCP infrastructure with authentication and monitoring
you:What transports does this MCP server support?
you:How does session management work?

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

mcp-serverstdio-mcpserverless-mcpmcp-x

Installation

Installation:

  1. Clone the repository: git clone https://github.com/NEDDL/fastify-mcp-server.git
  2. Navigate to the project: cd fastify-mcp-server
  3. Install dependencies: pnpm install
  4. Build the project: pnpm build
  5. Configure environment variables by copying .env.example to .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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.