Back to Home
flaviodelgrosso icon

fastify-mcp-server

Verified Safe

by flaviodelgrosso

Overview

A Fastify plugin providing a streamable HTTP transport for the Model Context Protocol (MCP), enabling AI assistants to interact with services.

Installation

Run Command
npm run dev

Environment Variables

  • REDIS_HOST
  • REDIS_PORT
  • REDIS_DB

Security Notes

The plugin provides a secure framework for implementing an MCP server, including robust Bearer token authentication and session management with pluggable storage. Bearer token validation relies on a user-provided `OAuthTokenVerifier` implementation, ensuring no hardcoded secrets in the core plugin. Session management for Redis uses `SCAN` for operations to prevent blocking. The overall security posture in a deployed application will depend on the security of the user's `OAuthTokenVerifier` implementation, the `createMcpServer` logic, and the underlying `@modelcontextprotocol/sdk` itself. The demo includes a clearly marked mock verifier.

Similar Servers

Stats

Interest Score41
Security Score9
Cost ClassLow
Avg Tokens50
Stars22
Forks5
Last Update2026-01-19

Tags

FastifyMCPAIPluginHTTP Transport