Skip to content

Cursor Integration

Cursor supports MCP servers natively. mpak bundles work seamlessly with Cursor’s Agent mode.

.cursor/mcp.json

Share with your team or add to .gitignore for private config.

  1. Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  2. Search “MCP” → Select “View: Open MCP Settings”
  3. Click “New MCP Server” or edit mcp.json directly

Add an mpak bundle:

{
"mcpServers": {
"echo": {
"command": "mpak",
"args": ["run", "@nimblebraininc/echo"]
}
}
}
{
"mcpServers": {
"echo": {
"command": "mpak",
"args": ["run", "@nimblebraininc/echo"]
},
"ipinfo": {
"command": "mpak",
"args": ["run", "@nimblebraininc/ipinfo"],
"env": {
"IPINFO_API_TOKEN": "your-token"
}
}
}
}

Once configured, Cursor automatically uses MCP tools in Agent mode:

  1. Open the AI chat panel
  2. Select Agent mode (not Ask or Edit)
  3. Prompt Cursor - it will use relevant MCP tools automatically
{
"mcpServers": {
"ipinfo": {
"command": "mpak",
"args": ["run", "@nimblebraininc/ipinfo"],
"env": {
"IPINFO_API_TOKEN": "your-token-here"
}
}
}
}

Keep secrets out of config files:

Terminal window
mpak config set @nimblebraininc/ipinfo api_key=your-token

Then use a clean config:

{
"mcpServers": {
"ipinfo": {
"command": "mpak",
"args": ["run", "@nimblebraininc/ipinfo"]
}
}
}
{
"mcpServers": {
"echo": {
"command": "mpak",
"args": ["run", "@nimblebraininc/echo@1.0.0"]
}
}
}
  1. Ensure you’re in Agent mode (not Ask or Edit)
  2. Check the MCP server status in settings
  3. Test the bundle directly: mpak run @package/name

Ensure mpak is installed globally:

Terminal window
npm install -g @nimblebrain/mpak
which mpak

If 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"]
}
}
}