frontmcp
View on GitHubTypeScript-first framework for the Model Context Protocol (MCP). You write clean, typed code; FrontMCP handles the protocol, transport, DI, session/auth, and execution flow.
FrontMCP is a TypeScript-first framework for building production MCP servers: decorator-based @Tool/@Resource/@App classes with DI, OAuth/JWKS auth, sessions, Streamable HTTP/SSE transport, plugins, OpenAPI adapters, React UI and a CLI. Same code ships to Node, Vercel, Lambda or Cloudflare Workers.
Use Cases
Build typed MCP servers with decorators and DIExpose tools, resources and prompts over MCPAdd OAuth/JWKS auth and sessions to MCP serversDeploy MCP servers to Node, Vercel, Lambda or Cloudflare WorkersGenerate MCP tools from an OpenAPI specBuild React UI widgets and tool UIs for MCP appsE2E test MCP servers with fixtures and matchersScaffold new MCP projects with the frontmcp CLICompose multi-step agent chains inside an MCP serverCache and gate tool execution with official pluginsConnect MCP directly to OpenAI or Claude clientsAdd structured logging, metrics and tracing to MCP servers
Built With
- Language
- TypeScript
- Frameworks
- Model Context Protocol SDK · @modelcontextprotocol/sdk · Nx · React · Zod · Jest · Playwright · OpenTelemetry · Rspack · Express/Node HTTP · Cloudflare Workers · SQLite · ioredis · Hugging Face Transformers · OpenAPI · Vercel
Tags
mcp · mcp-server · typescript · framework · decorators · dependency-injection · oauth · streamable-http · sse · zod · cli · plugins · serverless · cloudflare-workers · react · testing