Skip to content

nx-mcp Server

Overview

The Nx MCP server provides tools for working with Nx monorepo workspaces.

Installation

bash
npx nx-mcp@latest

Capabilities

Workspace Architecture

  • Understand workspace architecture and project dependencies
  • Retrieve project graph and configuration
  • Analyze nx.json settings

Documentation Access

  • Retrieve up-to-date Nx documentation
  • Get configuration options and best practices

Project Management

  • Explore individual project details
  • View project targets and execution commands
  • Understand project dependencies

Code Generation

  • Discover available generators
  • Access generator schemas and options
  • Scaffold new code following workspace patterns

CI/CD Integration

  • Monitor running tasks
  • View task output
  • Analyze CI/CD pipeline performance
  • Interact with Nx Cloud

Usage Examples

Get workspace information

Ask Claude: "What's the structure of this Nx workspace?"

Find project details

Ask Claude: "Show me the configuration for the recruitee app"

Discover generators

Ask Claude: "What Nx generators are available?"

Check CI status

Ask Claude: "What's the status of CI tasks?"

Configuration

Enabled in .claude/settings.local.json:

json
{
  "enabledMcpjsonServers": ["nx-mcp"]
}

Documentation

Official: https://www.npmjs.com/package/nx-mcp