MCP Framework · MCP SDK · MCP CLI
Build Production-Ready
MCP Servers
The decorator-based MCP framework for TypeScript. Build type-safe MCP servers, deploy MCP agents, and power agentic AI applications — all from a single SDK.
user.tools.ts
import { Tool, ExecutionContext } from 'nitrostack';
import { z } from 'zod';
export class UserTools {
@Tool({
name: 'get_user',
description: 'Fetch user details',
inputSchema: z.object({
userId: z.string()
})
})
async getUser(input: any, ctx: ExecutionContext) {
return db.users.find(input.userId);
}
}MCP Framework Features
Type-Safe MCP SDK
End-to-end type safety with Zod schemas and TypeScript inference. Build MCP tools and resources with confidence.
Decorator-Based MCP
Clean, declarative MCP server architecture inspired by NestJS. Ship agentic AI tools faster.
MCP Auth Built-in
Secure your MCP server with API key and OAuth 2.1 auth patterns out of the box.
UI Components for MCP
Rich widgets for enhanced LLM interactions and data display inside MCP agents.
MCP CLI, SDK, and Deployment Tools
Ready to build your MCP server?
Join thousands of developers building the next generation of agentic AI tools with NitroStack.