nx-console — Claude Code MCP server: what it does, how to install
Feeds Nx monorepo context to AI coding assistants, including project graph architecture, generator schemas, and documentation.
claude mcp add nx-console -- npx -y nx-mcpWhat nx-console does
This MCP server exposes an Nx monorepo to AI tools. It inspects workspace architecture, project relationships, and task targets. The agent reads project boundaries directly.
Under the hood, the server runs via the nx-mcp package over stdio. It supplies LLMs with generator schemas and official Nx documentation. Node.js with npx is strictly required. Without npx in your system path, the server fails immediately.
What it helps with
- feed monorepo architecture and project graphs into an AI assistant
- supply generator schemas for accurate workspace scaffolding
- access official Nx documentation directly inside coding prompts
Example prompts for the agent
- Show the project dependencies for the web application in our Nx workspace.
- Which Nx generator should I run to scaffold a new utility library?
How to install nx-console
Platform CLI
claude mcp add nx-console -- npx -y nx-mcpPlatform CLI
codex mcp add nx-console -- npx -y nx-mcpConfig file
{
"mcpServers": {
"nx-console": {
"command": "npx",
"args": [
"-y",
"nx-mcp"
]
}
}
}Config file
{
"servers": {
"nx-console": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"nx-mcp"
]
}
}
}Platform CLI
gemini mcp add nx-console npx -y nx-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about nx-console
How do I install nx-console in Claude Code?
Run claude mcp add nx-console -- npx -y nx-mcp in your terminal. You must have Node.js and npx available in your system path.
What does the nx-console MCP server do?
It provides LLMs with deep context regarding your monorepo workspace. The server shares project graphs, generator configurations, and up-to-date Nx documentation.
Do I need the editor extension to use this MCP server?
No, you do not need the IDE extension. The server runs independently using the nx-mcp npm package.