Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Nestjs MCP

MCP server by nestjs Verified · npm:@nestjs

Nestjs MCP is a Model Context Protocol module for NestJS. It turns provider methods into MCP tools, resources and prompts, served over Streamable HTTP or stdio, for teams building on Nest.

  • Score 93
  • 19 stars
  • 32k a week
  • MIT
  • Updated

Install Nestjs MCP

Built from the published package, never by AI.

claude mcp add nestjs-mcp -- npx -y @nestjs/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Nestjs MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the nestjs-mcp block.

About

Nestjs MCP is a Model Context Protocol module for NestJS. Tools, resources and prompts are methods of your providers, declared with decorators and a schema such as Zod, ArkType, Valibot or JSON Schema. Calls run through Nest's guards, interceptors, pipes and exception filters. It is built on the official MCP TypeScript SDK.

The server runs over Streamable HTTP from an existing Nest application, using Express, Fastify or the Node adapter. It can also run over stdio from a standalone application context. It supports the 2026-07-28 and 2025 protocol revisions, can act as an OAuth 2.1 resource server, and includes an in-memory test client. It suits NestJS developers who want to expose existing backend code to AI assistants.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Tools, resources and promptsProvider methods declared with decorators become MCP tools, resources and prompts.
  • Schema validationInputs are described with Zod, ArkType, Valibot or JSON Schema, or any Standard Schema library producing JSON Schema.
  • Streamable HTTP endpointServes the MCP endpoint from an existing Nest app on Express, Fastify or the Node adapter.
  • Stdio transportRuns the server over stdio from a standalone application context.
  • Nest request pipelineRuns guards, interceptors, pipes and exception filters around every call.
  • OAuth 2.1 resource serverSupports protected resource metadata, WWW-Authenticate challenges, per-tool scopes and a custom token verifier.
  • In-memory test clientLets you test the server without starting a transport.

What you need

  • An existing NestJS application
  • Zod 4.2 or later, or another Standard Schema library producing JSON Schema
  • Express, Fastify or the Node adapter for HTTP

Try asking

  • Save a note saying I need to renew my passport
  • Show all my notes as a JSON list
  • Add a note with the text from my last message

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Nestjs MCP

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Nestjs MCP: common questions

Does Nestjs MCP support stdio as well as HTTP?

Yes. The server can run over stdio from a standalone application context, and the sample includes both HTTP and stdio entry points.

Which schema libraries can I use for tool inputs?

The source names Zod, ArkType, Valibot and JSON Schema. It also says any other Standard Schema library that produces JSON Schema works.

Does it support OAuth authorization?

It can act as an OAuth 2.1 resource server with protected resource metadata, WWW-Authenticate challenges, per-tool scopes and a token verifier of your own.

How do I install Nestjs MCP?

In Claude Code run claude mcp add nestjs-mcp -- npx -y @nestjs/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Nestjs MCP the official server?

Nestjs MCP is published by npm:@nestjs from its verified domain in the official MCP Registry.

Is Nestjs MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Nestjs MCP safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Nestjs MCP?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Nestjs MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Nestjs MCP Install

Add to stack

Loading.