Cursor Integration
Cursor supports MCP servers natively. mpak bundles work seamlessly with Cursor’s Agent mode.
Configuration File Location
Section titled “Configuration File Location”.cursor/mcp.jsonShare with your team or add to .gitignore for private config.
Open Command Palette → “Cursor Settings” → “MCP”
Quick Setup
Section titled “Quick Setup”- Open Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Search “MCP” → Select “View: Open MCP Settings”
- Click “New MCP Server” or edit
mcp.jsondirectly
Add an mpak bundle:
{ "mcpServers": { "echo": { "command": "mpak", "args": ["run", "@nimblebraininc/echo"] } }}Multiple Servers
Section titled “Multiple Servers”{ "mcpServers": { "echo": { "command": "mpak", "args": ["run", "@nimblebraininc/echo"] }, "ipinfo": { "command": "mpak", "args": ["run", "@nimblebraininc/ipinfo"], "env": { "IPINFO_API_TOKEN": "your-token" } } }}Using MCP Servers in Cursor
Section titled “Using MCP Servers in Cursor”Once configured, Cursor automatically uses MCP tools in Agent mode:
- Open the AI chat panel
- Select Agent mode (not Ask or Edit)
- Prompt Cursor - it will use relevant MCP tools automatically
Configuration with Secrets
Section titled “Configuration with Secrets”Option 1: Environment Variables
Section titled “Option 1: Environment Variables”{ "mcpServers": { "ipinfo": { "command": "mpak", "args": ["run", "@nimblebraininc/ipinfo"], "env": { "IPINFO_API_TOKEN": "your-token-here" } } }}Option 2: mpak config (Recommended)
Section titled “Option 2: mpak config (Recommended)”Keep secrets out of config files:
mpak config set @nimblebraininc/ipinfo api_key=your-tokenThen use a clean config:
{ "mcpServers": { "ipinfo": { "command": "mpak", "args": ["run", "@nimblebraininc/ipinfo"] } }}Pin to a Specific Version
Section titled “Pin to a Specific Version”{ "mcpServers": { "echo": { "command": "mpak", "args": ["run", "@nimblebraininc/echo@1.0.0"] } }}Troubleshooting
Section titled “Troubleshooting”Server Not Appearing
Section titled “Server Not Appearing”- Ensure you’re in Agent mode (not Ask or Edit)
- Check the MCP server status in settings
- Test the bundle directly:
mpak run @package/name
Command Not Found
Section titled “Command Not Found”Ensure mpak is installed globally:
npm install -g @nimblebrain/mpakwhich mpakIf using a version manager (nvm, volta), specify the full path:
{ "mcpServers": { "echo": { "command": "/Users/you/.nvm/versions/node/v20.0.0/bin/mpak", "args": ["run", "@nimblebraininc/echo"] } }}Resources
Section titled “Resources”- Cursor MCP Documentation
- cursor.directory - Browse MCP servers