N

Nitrostack

TypeScript framework for building, testing, and deploying MCP servers with decorators, dependency injection, authentication, and widgets.

Install Nitrostack

Run the project’s own setup commands, in order.

Setup steps from the project

nitrostack installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npx @nitrostack/cli init my-server
    
  2. 2. Install
    npm i -g @nitrostack/cli
    

Overview

nitrostack MCP server provides a TypeScript framework for building MCP servers and AI-native backends. It uses decorators to define tools, resources, and prompts, with dependency injection, Zod validation, authentication, middleware, caching, and React-based widgets. The CLI scaffolds projects and runs a development server, while NitroStudio supports tool testing, payload inspection, AI chat, widget previews, and hot reload. Reach for it when you want an opinionated development stack rather than assembling MCP server infrastructure yourself.

Use cases

  • Scaffold a TypeScript MCP server
  • Define validated tools with decorators
  • Add authentication and dependency injection
  • Test tool payloads in NitroStudio
  • Attach React widgets to tool outputs

Key features

  • Decorator-based tools, resources, and prompts
  • Dependency injection with three lifecycle modes
  • JWT, OAuth 2.1, and API key authentication
  • Zod runtime validation
  • React UI widgets for tool output
  • CLI scaffolding and NitroStudio testing

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2.6kStargazers on the source repository.
Last commit1d agoMost recent push to the default branch.

How Nitrostack works

What nitrostack does

NitroStack is a full-stack TypeScript framework for creating MCP servers and AI-native applications. Its core package provides the server runtime, decorators, dependency injection, and application structure. The framework is designed around declarative definitions: developers annotate classes and methods to expose tools, resources, and prompts without manually wiring each endpoint.

The ecosystem also includes a CLI for project scaffolding, development workflows, and code generation, plus a widgets package for attaching React interfaces to tool results. NitroStudio is a separate desktop application for working with a NitroStack project through visual testing and debugging tools.

How it works

A project starts with an application definition that references a module. Modules organize the application, while decorated methods become MCP capabilities. Tool definitions can include names, descriptions, and Zod input schemas, allowing request validation to remain alongside the API declaration.

NitroStack includes a dependency-injection container with singleton, transient, and scoped lifecycles. Request processing can be extended with guards, interceptors, pipes, and exception filters. Authentication options include JWT, OAuth 2.1, and API keys. Tool methods can also use caching and attach a widget identifier to return interactive UI alongside their output.

The development server is launched from a scaffolded project. NitroStudio can open that project, manage its development server, execute tools, inspect request and response payloads, provide an integrated AI chat interface, preview widgets, and apply code changes through hot reload.

Setup and configuration

The quick-start path requires Node.js 20.18 or newer and npm 9 or newer. Create a project with the CLI, install its dependencies, and start development:

Terminal
npx @nitrostack/cli init my-server
cd my-server
npm install
npm run dev

The framework can also be installed in individual packages. @nitrostack/core contains the framework runtime, @nitrostack/cli provides the command-line tooling, and @nitrostack/widgets supplies the React SDK for interactive tool output interfaces. The CLI is available through its npm package and can be installed globally when preferred.

After scaffolding, open the project directory in NitroStudio to test the server visually. Deployment guidance covers production checklists, Docker, and cloud platforms.

Tools and capabilities

  • Define MCP tools, resources, and prompts with TypeScript decorators.
  • Validate tool inputs at runtime with Zod schemas.
  • Manage application dependencies with singleton, transient, and scoped lifecycles.
  • Apply guards, interceptors, pipes, and exception filters to request handling.
  • Configure JWT, OAuth 2.1, or API key authentication.
  • Add caching and React widgets to tool implementations.
  • Scaffold projects and run development workflows with the CLI.
  • Test tools, inspect payloads, chat with a server, preview widgets, and use hot reload in NitroStudio.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Nitrostack

nitrostack is an MCP server that provides a TypeScript framework for building MCP servers and AI-native apps, connects developer-built servers to MCP-compatible clients, and supplies decorator-defined tools, resources, prompts, dependency injection, authentication, validation, testing, and deployment workflows through its CLI and NitroStudio.

Install it by scaffolding a project with `npx @nitrostack/cli init my-server`, then run `npm install` and `npm run dev`. Node.js 20.18 or newer and npm 9 or newer are required.

Test it in NitroStudio by opening the scaffolded project folder. NitroStudio can execute tools, inspect request and response payloads, chat with the server, preview widgets, and reflect code changes with hot reload.

NitroStack supports JWT, OAuth 2.1, and API key authentication. Authentication can be applied to decorated tool methods through the framework's guard and middleware model.

NitroStack requires Node.js 20.18 or newer and npm 9 or newer for the documented quick-start workflow.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNitrostack AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nitrostack?style=directory)](https://allmcps.com/mcp/nitrostack)
HTML Embed
<a href="https://allmcps.com/mcp/nitrostack"><img src="https://allmcps.com/api/badge/nitrostack?style=directory" alt="Nitrostack on AllMCPs" /></a>