Back to Home
flaviodelgrosso icon

fastify-mcp-server

Verified Safe

by flaviodelgrosso

Overview

Provides a Fastify plugin to act as a Model Context Protocol (MCP) server, enabling AI assistants and clients to interact with services via streamable HTTP transport.

Installation

Run Command
npm run dev

Security Notes

The plugin provides robust features for authentication (Bearer token with custom verifier) and OAuth metadata endpoints. Error handling is designed to prevent information leakage by returning generic MCP error responses. The overall architecture is sound for a Fastify plugin. However, the security relies heavily on the user's implementation of the `OAuthTokenVerifier` for actual token validation and the `cors` configuration in demo (`origin: true`) which, if applied broadly without proper origin validation, could be a risk. The plugin itself provides the mechanisms for secure integration, but the ultimate security depends on how it's configured and the quality of external verifier implementations.

Similar Servers

Stats

Interest Score41
Security Score8
Cost ClassMedium
Avg Tokens500
Stars20
Forks4
Last Update2025-12-06

Tags

FastifyPluginMCPAIStreamingAPI