nitrocloudofficial/nitrostack

View on GitHub ↗

The full-stack TypeScript framework to build, test, and deploy production-ready MCP servers and AI-native apps.

2,520 ★1,445 forksTypeScriptUpdated 1mo ago

What you need to know

An enterprise-grade TypeScript framework (Apache 2.0) for building production-ready MCP servers with decorators, dependency injection, built-in auth, middleware pipelines, and React UI widgets - not a server itself but a batteries-included MCP server framework.

Install

npx @nitrostack/cli init my-server
cd my-server && npm install && npm run dev
npm i @nitrostack/core (framework), npm i -g @nitrostack/cli (scaffolding), npm i @nitrostack/widgets (React UI SDK)

Usage

  • •Prerequisites: Node.js >= 20.18 and npm >= 9
  • •Define tools with @Tool decorators plus Zod inputSchema; add @UseGuards, @Cache, @Widget decorators for auth, caching, and UI
  • •Open the scaffolded project in NitroStudio desktop app for visual testing, payload inspection, and built-in AI chat
  • •Connect the running server to any MCP-compatible client

Key features

  • ✓Decorator-driven tools, resources, and prompts; first-class DI container (singleton/transient/scoped)
  • ✓Built-in auth: JWT, OAuth 2.1, API key; middleware pipeline with guards, interceptors, pipes, exception filters
  • ✓UI Widgets attach React components to tool outputs for interactive responses; Zod end-to-end type safety
  • ✓NitroStudio desktop app for testing/debugging/chatting with the server; hot reload
  • ✓Doctored for deployment: production checklist, Docker, cloud platforms

Best for

Teams building production MCP servers in TypeScript with enterprise patterns (auth, DI, middleware, UI) out of the box.

Caveats

  • ⚠Framework, not a ready-to-run MCP server; no server is shipped
  • ⚠Requires Node.js >= 20.18 and npm >= 9
Platforms: Cross-platform (Node.js)Clients: Any MCP-compatible client
Documentation ↗

Reviewed 2026-08-07

Topics

agentic-aiaichatgptchatgpt-appsclaudeclaude-appsmcpmcp-clientmcp-servermcp-serversmcp-toolsmcpagentsmcpappsmodel-context-protocolmodelcontextprotocol
Stars
2,520★
Forks
1,445
Language
TypeScript
License
Apache-2.0
Created
2026-03-03
Last push
2026-07-30