nx-mcp
MCP server by nrwl Community
nx-mcp is a Model Context Protocol server for Nx. It gives AI assistants context about an Nx workspace, including its architecture, generators and up-to-date Nx docs. It is aimed at developers working in Nx monorepos.
Install nx-mcp
Built from the published package, never by AI.
claude mcp add nx-mcp -- npx -y nx-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"nx-mcp": {
"args": [
"-y",
"nx-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"nx-mcp": {
"args": [
"-y",
"nx-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"nx-mcp": {
"args": [
"-y",
"nx-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add nx-mcp -- npx -y nx-mcp{
"mcpServers": {
"nx-mcp": {
"args": [
"-y",
"nx-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add nx-mcp npx -y nx-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 nx-mcp block.
About
nx-mcp is a Model Context Protocol server for Nx. According to the Nx Console README, it provides relevant context to the large language models used by editors such as VS Code and Cursor. It teaches the AI about a workspace's architecture and generators, and it can feed the AI up-to-date Nx documentation.
The MCP server ships with the Nx Console extension for VS Code and Cursor. It can also be installed separately from the nx-mcp npm package. The source is written for developers working in Nx or Lerna workspaces with Node.js installed, who want their AI chat to understand their projects.
Written from the project's README and checked against it.
What you need
- Node.js
- An Nx or Lerna workspace
- VS Code or Cursor for the MCP server
Try asking
- What generators are available in this Nx workspace and how do I use them?
- Explain the architecture of this Nx workspace and how its projects depend on each other.
- Using the current Nx docs, how should I configure the targets for this project?
Good to know
- Compatibility is stated for Nx 15 and later. Older versions are not guaranteed.
- The source describes MCP server support for VS Code and Cursor only.
Security check
ANo 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
What you can do with it
- Give AI assistants context on an Nx workspace
- Ask about workspace generators and architecture
- Get current Nx documentation inside AI chat
Alternatives to nx-mcp
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
nx-mcp: common questions
Does nx-mcp work with older versions of Nx?
The source says the latest Nx Console supports Nx 15 and later. For older versions, the source does not guarantee compatibility or full functionality.
Do I need the Nx Console extension to use nx-mcp?
No. The source says the MCP server can be installed separately from the Nx Console extension via the nx-mcp npm package.
Which editors does the Nx MCP server support?
The source describes the MCP server for Visual Studio Code and Cursor.
How do I install nx-mcp?
In Claude Code run claude mcp add nx-mcp -- npx -y nx-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is nx-mcp the official server?
nx-mcp is a community project by nrwl, not verified by a company domain.
Is nx-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is nx-mcp safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. 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 nx-mcp?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does nx-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.
