MCP Server

Connect NocoDB to Large Language Models (LLMs) via the Model Context Protocol (MCP).

The Model Context Protocol (MCP) Server lets you connect NocoDB with LLMs that support MCP, such as Claude, Cursor, or Windsurf. With this integration, LLMs can interact directly with your NocoDB workspace to create, query, update, and manage records.

Each MCP endpoint in NocoDB provides a secure URL that can be linked to an MCP-compatible client. Once configured, the LLM can execute database operations in your workspace through natural language prompts.

The MCP integration currently works only with desktop clients that support MCP. Support for web based clients is coming soon.

MCP server exposes standard CRUD operations. These can be triggered conversationally, without writing SQL or scripts.

ActionPurposeSample Prompt
CreateAdd new recordsCreate a task named ‘Review Documentation’
ReadLook up informationShow me all projects with deadlines this week
UpdateChange existing dataMark the status of Project X as completed & re-assign to John
DeleteRemove recordsRemove all tasks assigned to John

Server Configuration (NocoDB)

  1. Click on the Overview button in the left sidebar.
  2. Select the Settings tab.
  3. Select the Model Context Protocol
  4. Click on the New MCP Endpoint to create a new MCP config JSON for your base.
  5. Provide a name for the MCP endpoint
  6. Click Create to generate the MCP Config JSON.
  7. Copy the generated JSON configuration. This will be used in your LLM client configuration.

MCP Config

MCP Config

Client Configuration

Claude

  1. Open Claude Desktop Preferences (⌘+,).
  2. Under Develop, click Edit Config.
  3. Insert the JSON block copied here as claude_desktop_config.json.
  4. Save the file and restart Claude Desktop.

Cursor

  1. Go to Cursor Settings (⇧+⌘+J).
  2. Open the MCP tab and select Add Custom MCP.
  3. Paste the JSON block copied here. Save.
On success, you will see 11 tools enabled below the MCP Server just installed. If you see an error, double-check the JSON configuration.

Cursor MCP Settings

Windsurf

  1. Open Windsurf Settings (⌘+,).
  2. In the Cascade section > Plugins (MCP Server) > Click Manage Plugins
  3. Paste the JSON block copied here. Save.

Windsurf MCP Settings

Windsurf MCP Settings

JSON Example

{
  "mcpServers": {
    "NocoDB MCP": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://your-domain.com/mcp/<ncId>",
        "--header",
        "xc-mcp-token: <ncToken>"
      ]
    }
  }
}
Your MCP configurations generated above functions as a set of access credentials, granting full control over your NocoDB base. Ensure it remains confidential, never include it in source control, and store it only in secure, protected locations.