Nx MCP Server

Nx MCP Server

1,344

Nx MCP Server offers a Model Context Protocol server specifically for Nx environments, allowing deep integration of LLMs with monorepo structures. It enhances AI capabilities by providing tailored code generation and precise modifications using comprehensive monorepo insights.

Nx MCP Server

A server implementation for Nx providing LLMs with access to monorepo structures such as project relationships, file mappings, runnable tasks, and more. With this context, LLMs can generate code tailored to specific stacks and apply modifications efficiently. The server supports integration with AI tools like Cursor and Claude Desktop.

Installation and Usage

  • Run via the nx-mcp package using npx or your package manager
  • Host the server with --sse and --port flags
  • Use the Nx Console extension which manages the MCP server
  • Supports single concurrent connection

Available Tools

  • nx_workspace: Annotated nx configuration representation
  • nx_project_details: Full project configuration
  • nx_docs: Retrieves relevant documentation
  • nx_generators: List of available generators
  • nx_generator_schema: Detailed schema information
  • nx_available_plugins: Available Nx plugins from npm

Contributing & Development

  • Clone the Nx Console repository
  • Build and test with the MCP Inspector

License

  • MIT License