Introducing FrontMCP, a TypeScript framework for MCP servers
Maintained guide. Example version: FrontMCP 1.10.10. Technical checks recorded: 2026-10-22. How checks work.
The official MCP SDK supplies protocol and server interfaces. As a server grows, you still need to decide how tools share services, authenticate callers and get tested. FrontMCP supplies a common structure for those decisions: apps group capabilities, providers hold shared services, and tools declare input contracts.
This launch article was updated for FrontMCP 1.10.10. Its example below runs through the same Playground checks as the lessons. For project setup and prerequisites, follow Installation.
A tiny FrontMCP server
The tool extends ToolContext, and inputSchema takes a raw Zod shape. Both matter: listing a tool alone does not prove a call works. Open Tests to check a valid call and a rejected input.
import { App, FrontMcp, Tool, ToolContext, z } from "@frontmcp/sdk";
@Tool({
name: "greet",
description: "Greet a person by name",
inputSchema: { name: z.string().min(1) },
})
class GreetTool extends ToolContext {
async execute({ name }: { name: string }) {
return { greeting: `Hello, ${name}!` };
}
}
@App({ id: "hello", name: "Hello", tools: [GreetTool] })
class HelloApp {}
@FrontMcp({ info: { name: "hello", version: "1.0.0" }, apps: [HelloApp] })
export default class Server {}Starting FrontMCP in your browser…
FrontMCP starts when this example comes into view.
@Tool describes what clients can call. ToolContext supplies the execution context. @App registers the tool, and @FrontMcp describes the server. The tool reference covers results, errors and validation.
Start a local project
Use Node.js 24 or later for local development:
npx frontmcp@1.12.2 create hello
cd hello
npm install
npx frontmcp devScaffolding creates the project; install its dependencies separately. For an existing project, frontmcp init creates TypeScript configuration. It does not replace dependency setup or add all application scripts. See the CLI reference.
Where the structure helps
- Providers hold shared services, such as an API client.
- Authentication establishes identity; access rules still decide which records a caller may read.
- Testing checks what clients receive, including errors.
- Deployment targets produce artifacts for the selected runtime.
For a few tools in an existing application, the official SDK may be enough. Why FrontMCP explains the tradeoffs. Continue with Your First Tool or a complete example.