home / mcp / fastify mcp server
🤖 Automatically generate MCP tools from your Fastify API routes.
Configuration
View docs{
"mcpServers": {
"adiramsalem-mcp-it": {
"url": "http://localhost:3000/mcp/sse"
}
}
}You expose your Fastify API as MCP tools so AI assistants can interact with your endpoints directly. The MCP server discovers your routes, turns them into tools, and serves them over a transport that clients like Cursor or Claude can consume. This lets you orchestrate complex API interactions through natural language interfaces while keeping your business logic centralized in Fastify.
Set up your MCP server and connect a client to the SSE endpoint to expose your Fastify routes as MCP tools. Use a client capable of MCP interactions (for example, Cursor or Claude) and point it at the server’s MCP transport URL. Your tools will reflect your routes with their schemas and operation identifiers, making it easy for AI assistants to compose requests against your API.
Prerequisites: ensure you have Node.js installed on your machine.
Install the MCP adapter for Fastify using your preferred package manager.
Configuration options are available to customize which routes are exposed, the transport type, and how detailed tool descriptions are.
You can access the MCP server instance from your Fastify app if you need to perform advanced lifecycle operations.