NitroStack Logo

MCP Framework · MCP SDK · MCP CLI

Build Production-Ready
MCP Servers

The decorator-based MCP framework for Python. Build Pydantic-validated MCP servers, deploy MCP agents, and power agentic AI applications with nitrostack and nitrostack-py.

calculator_tools.py
from pydantic import BaseModel
from nitrostack import injectable, tool, ExecutionContext

class GetUserInput(BaseModel):
    user_id: str

@injectable()
class UserTools:
    @tool(name="get_user", description="Fetch user details", input_schema=GetUserInput)
    async def get_user(self, input: GetUserInput, context: ExecutionContext):
        return {"id": input.user_id}

MCP Framework Features

Pydantic-Validated MCP SDK

Runtime validation with Pydantic v2 models. Define tool input_schema once and get typed handlers.

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, JWT, and OAuth 2.1 auth patterns out of the box.

UI Components for MCP

Bind static HTML widgets with @widget and serve them from widgets/out without a React build.

MCP CLI, SDK, and Deployment Tools

MCP CLI

  • nitrostack-py init templates
  • Hot-reload with nitrostack-py dev
  • Pack wheels, not JS bundles
Learn more

MCP SDK

  • MCP resource management
  • MCP prompt templates
  • MCP tool orchestration
Learn more

MCP Ecosystem

  • python-starter, pizzaz, oauth
  • Agent skills on init
  • In-process test harness
Learn more

Deploy MCP Servers

  • Docker support
  • Serverless ready
  • nitrostack-py start
Learn more

Ready to build your MCP server?

Join thousands of developers building the next generation of agentic AI tools with NitroStack.