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.
Action | Purpose | Sample Prompt |
---|---|---|
Create | Add new records | Create a task named ‘Review Documentation’ |
Read | Look up information | Show me all projects with deadlines this week |
Update | Change existing data | Mark the status of Project X as completed & re-assign to John |
Delete | Remove records | Remove all tasks assigned to John |
Server Configuration (NocoDB)
- Click on the Overview button in the left sidebar.
- Select the Settings tab.
- Select the Model Context Protocol
- Click on the New MCP Endpoint to create a new MCP config JSON for your base.
- Provide a name for the MCP endpoint
- Click Create to generate the MCP Config JSON.
- Copy the generated JSON configuration. This will be used in your LLM client configuration.
Client Configuration
Claude
- Open Claude Desktop Preferences (
⌘+,
). - Under Develop, click Edit Config.
- Insert the JSON block copied here as
claude_desktop_config.json
. - Save the file and restart Claude Desktop.
Cursor
- Go to Cursor Settings (
⇧+⌘+J
). - Open the MCP tab and select Add Custom MCP.
- 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. Windsurf
- Open Windsurf Settings (
⌘+,
). - In the Cascade section >
Plugins (MCP Server)
> Click Manage Plugins - Paste the JSON block copied here. Save.
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.