Documentation
Cursor

Cursor Setup

Configure MCP for Cursor IDE to enable AI-assisted component management with Claude.

Automatic Setup (Recommended)

Run this single command to automatically configure Cursor:

npx archyra init --client cursor

Manual Setup

If you prefer to configure manually, follow these steps:

1Choose configuration location

Cursor looks for MCP configuration in these locations:

For project-specific configuration (recommended for teams):

.cursor/mcp.json

Create this file in your project root directory.

2Create the configuration file

Create the file with this content:

{
  "mcpServers": {
    "archyra": {
      "command": "npx",
      "args": ["-y", "archyra@latest", "serve"]
    }
  }
}
3Restart Cursor

Close and reopen Cursor to load the new MCP configuration. You can also use Cmd/Ctrl + Shift + P and search for "Reload Window".

Verify Setup

After restarting Cursor, open the AI chat and try these prompts:

You

"List all archyra components"

You

"What loading components are available?"

You

"Add the PulseCircle component to my project"

If the AI responds with component information, your setup is complete!

Troubleshooting

Problem

MCP not appearing in Cursor

Solution: Check that the mcp.json file is in the correct location and the JSON syntax is valid.

Problem

AI doesn't know about Archyra

Solution: Make sure you restarted Cursor after adding the configuration. Try "Reload Window" from the command palette.

Problem

npx command not found

Solution: Ensure Node.js is installed and in your PATH. Run: node --version to verify.

Problem

Project-level config not working

Solution: Ensure the .cursor folder is in your project root, not in a subdirectory.