Cursor MCP Setup Guide
This guide provides step-by-step instructions for setting up the Registry MCP with Cursor.
Quick Setup
Step 1: Install Dependencies
# Clone and setup the repository
git clone https://github.com/slolab/registry-mcp.git
cd registry-mcp
# Install dependencies with uv
uv sync
# Install the package in development mode
uv pip install -e .
Step 2: Find Your Python Path
This will output something like: /Users/username/GitHub/registry-mcp/.venv/bin/python
Step 3: Configure Cursor
Create or edit your Cursor MCP configuration file:
macOS/Linux: ~/.cursor/mcp.json
Windows: %APPDATA%\.cursor\mcp.json
{
"mcpServers": {
"registry-mcp": {
"command": "/Users/username/GitHub/registry-mcp/.venv/bin/python",
"args": ["-u", "-m", "registry_mcp.main"],
"workingDirectory": "/Users/username/GitHub/registry-mcp",
"env": { "PYTHONUNBUFFERED": "1" }
}
}
}
Important: Replace /Users/username/GitHub/registry-mcp with your actual path.
Step 4: Test the Configuration
# Test the command manually
/path/to/your/registry-mcp/.venv/bin/python -u -m registry_mcp.main --help
Step 5: Restart Cursor
Close and restart Cursor completely for the changes to take effect.
Automated Setup Script
You can use this script to automate the setup:
#!/bin/bash
# setup-cursor-mcp.sh
# Get the current directory (should be registry-mcp)
REGISTRY_MCP_DIR="$(pwd)"
PYTHON_PATH="$REGISTRY_MCP_DIR/.venv/bin/python"
CURSOR_CONFIG_DIR="$HOME/.cursor"
# Create Cursor config directory if it doesn't exist
mkdir -p "$CURSOR_CONFIG_DIR"
# Create the configuration
cat > "$CURSOR_CONFIG_DIR/mcp.json" << EOF
{
"mcpServers": {
"registry-mcp": {
"command": "$PYTHON_PATH",
"args": ["-u", "-m", "registry_mcp.main"],
"workingDirectory": "$REGISTRY_MCP_DIR",
"env": { "PYTHONUNBUFFERED": "1" }
}
}
}
EOF
echo "โ
MCP configuration created at: $CURSOR_CONFIG_DIR/mcp.json"
echo "๐ Configuration:"
echo " Command: $PYTHON_PATH"
echo " Working Directory: $REGISTRY_MCP_DIR"
echo ""
echo "๐ Please restart Cursor to apply the changes."
echo ""
echo "๐งช Test the configuration:"
echo " $PYTHON_PATH -u -m registry_mcp.main --help"
Save this as setup-cursor-mcp.sh, make it executable, and run it:
Testing the Connection
After restarting Cursor, test the connection by asking Cursor to:
- "Analyze my current project directory"
- "Get registry workflow guidance"
- "Show me example submissions"
- "Help me create a YAML specification for my component"
If the connection works, Cursor should be able to use the Registry MCP tools to help you with registry submissions.
Troubleshooting
Common Issues
- "No module named registry_mcp"
- Make sure you're using the Python from the
.venv/bin/pythonpath -
Verify the package is installed with
uv pip install -e . -
"Command not found"
- Use absolute paths in the configuration
-
Check that the Python executable exists at the specified path
-
"Permission denied"
- Ensure the virtual environment is properly set up
-
Run
uv syncto recreate the environment if needed -
Cursor doesn't recognize the MCP
- Restart Cursor completely
- Check the configuration file syntax (valid JSON)
- Verify the file is in the correct location
Debugging Steps
-
Test the command manually:
-
Check the configuration file:
-
Verify the Python path:
-
Check Cursor's logs for MCP-related errors
Next Steps
Once the MCP is connected, you can:
- Follow the Usage Guide for step-by-step instructions
- Use the Quick Reference for tool parameters
- Start annotating your components for registry submission
The Registry MCP provides 10 specialized tools to help you create, validate, and submit schema.org-compatible specifications to the BioContextAI registry.