FrontMCP
TypeScript-first framework for the Model Context Protocol (MCP). You write clean, typed code; FrontMCP handles the protocol, transport, DI, session/auth, and execution flow.
What is FrontMCP?
FrontMCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to typescript-first framework for the model context protocol (mcp). you write clean, typed code; frontmcp handles the protocol, transport, di, session/auth, and execution flow.
TypeScript-first framework for the Model Context Protocol (MCP). You write clean, typed code; FrontMCP handles the protocol, transport, DI, session/auth, and execution flow.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- TypeScript-first framework for the Model Context Protocol (M
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @frontmcp/uiManual Installation
npx -y @frontmcp/uiConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use FrontMCP
FrontMCP is a production-grade, TypeScript-first framework for building Model Context Protocol servers using decorators and dependency injection. It abstracts away the protocol, transport, session management, and authentication so developers write clean @Tool, @Resource, and @App classes instead of low-level MCP boilerplate. The same server code runs locally in development and deploys unchanged to Node.js, Vercel, AWS Lambda, or Cloudflare Workers. Teams adopt it to ship typed, testable MCP servers with built-in OAuth, JWKS, Streamable HTTP transport, and an official UI library.
Prerequisites
- Node.js 24 or higher (strictly required by the framework)
- npm or npx available in your PATH
- An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
- TypeScript knowledge for writing @Tool and @App decorators
- reflect-metadata support (imported at the top of your entry file)
Scaffold a new FrontMCP project
Use the official CLI scaffolder to create a fully configured project with TypeScript, decorators, and the core SDK already wired up.
npx frontmcp create my-mcp-appInstall into an existing project
If you already have a Node.js project, add the FrontMCP SDK and Node types as dev dependencies, then run the init command to generate the server entry point and tsconfig adjustments.
npm i -D frontmcp @types/node@^24
npx frontmcp initDefine your first App and Tool
Create an App class with the @App decorator and add methods decorated with @Tool. Each method receives typed, Zod-validated inputs and returns typed outputs automatically surfaced to MCP clients.
import 'reflect-metadata';
import { App, Tool } from '@frontmcp/sdk';
import { z } from 'zod';
@App({ name: 'hello' })
export default class HelloApp {
@Tool({ description: 'Say hello to a name' })
async greet({ name }: { name: z.infer<typeof z.string()> }) {
return { message: `Hello, ${name}!` };
}
}Bootstrap the FrontMCP server
Wire your App into the @FrontMcp decorator on the root server class. Set the HTTP port for local development.
import 'reflect-metadata';
import { FrontMcp, LogLevel } from '@frontmcp/sdk';
import HelloApp from './hello.app';
@FrontMcp({
info: { name: 'Demo', version: '0.1.0' },
apps: [HelloApp],
http: { port: 3000 },
logging: { level: LogLevel.Info },
})
export default class Server {}Start the development server
Use the CLI dev command which watches for changes and restarts automatically. Alternatively build and run for production.
npx frontmcp dev
# or build for production:
npx frontmcp build && node dist/index.jsConnect your MCP client
Configure your MCP client (Claude Desktop, Cursor, etc.) to connect to the local Streamable HTTP endpoint exposed by FrontMCP.
FrontMCP Examples
Client configuration
Claude Desktop configuration connecting to a locally running FrontMCP server over HTTP/SSE on port 3000.
{
"mcpServers": {
"frontmcp-demo": {
"command": "npx",
"args": ["-y", "@frontmcp/ui"],
"env": {}
}
}
}Prompts to try
Example prompts once your FrontMCP server is running and its tools are exposed to your AI assistant.
- "Call the greet tool with my name and show the response"
- "List all tools available on the connected MCP server"
- "Use the hello app to generate a greeting for the user Alice"Troubleshooting FrontMCP
Server fails to start with a 'version mismatch' error at boot
All @frontmcp/* packages must be on the same version. Run 'npm ls @frontmcp/sdk @frontmcp/cli' to compare versions, then update all to match: npm i -D @frontmcp/sdk@<version> @frontmcp/cli@<version>.
TypeScript errors about decorators or reflect-metadata not found
Ensure 'experimentalDecorators' and 'emitDecoratorMetadata' are both true in tsconfig.json, and that 'import reflect-metadata' is the very first line in your entry file before any other imports.
MCP client cannot connect to the server
Verify the server is listening on the expected port with 'curl http://localhost:3000'. Check that your firewall or antivirus is not blocking the port. For Claude Desktop, ensure the config JSON path is correct and the client has been restarted after config changes.
Frequently Asked Questions about FrontMCP
What is FrontMCP?
FrontMCP is a Model Context Protocol (MCP) server that typescript-first framework for the model context protocol (mcp). you write clean, typed code; frontmcp handles the protocol, transport, di, session/auth, and execution flow. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install FrontMCP?
Install via npm with the command: npx -y @frontmcp/ui. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with FrontMCP?
FrontMCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is FrontMCP free to use?
Yes, FrontMCP is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
FrontMCP Alternatives — Similar Developer Tools Servers
Looking for alternatives to FrontMCP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up FrontMCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use FrontMCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.