Nocodb
MCP server from granthooks/Nocodb-MCP-Server
claude mcp add --transport stdio granthooks-nocodb-mcp-server python nocodb_mcp_server.py \ --env NOCODB_URL="base URL for Nocodb instance (e.g., https://your-nocodb-instance.com/ncdb)" \ --env NOCODB_BASE_ID="Base ID of the Nocodb database" \ --env NOCODB_API_TOKEN="API token for Nocodb authentication"
How to use
This MCP server exposes a set of tools to interact with a Nocodb database using the Model Context Protocol. It provides CRUD operations for Nocodb tables, including retrieving records, creating new records, updating existing ones, deleting records, and querying table schemas. The available tools are retrieve_records, create_records, update_records, delete_records, and get_schema. To use these tools, configure an MCP client (such as Claude Desktop, MCP CLI, or a Cursor-compatible client) to launch the nocodb_mcp_server.py process with the required environment variables (NOCODB_URL, NOCODB_API_TOKEN, and NOCODB_BASE_ID). Once running, you can issue Python-like calls through the MCP interface to perform operations against your Nocodb instance, with responses including error information when applicable.
How to install
Prerequisites:
- Python 3.8+ installed on your system
- Access to install Python packages
- A Nocodb instance with an API token
Step-by-step installation:
- Install Python dependencies from the project:
pip install -r requirements.txt
- Install the MCP Python SDK (if not already installed with dependencies):
pip install "mcp[cli]"
-
Ensure you have a configured environment for Nocodb (NOCODB_URL, NOCODB_API_TOKEN, NOCODB_BASE_ID) before running the server.
-
Run the MCP server directly (standalone) once dependencies are installed:
python nocodb_mcp_server.py
- Or use the MCP CLI to run the server via an installed module:
mcp run nocodb_mcp_server.py
Additional notes
Tips and notes:
- Environment variables NOCODB_URL, NOCODB_API_TOKEN, and NOCODB_BASE_ID are required for authentication and proper operation with the Nocodb v2 REST API.
- Authentication uses the xc-token header, populated from NOCODB_API_TOKEN.
- The server uses v2 API endpoints like /api/v2/tables/{tableId}/records and /api/v2/meta/tables/{tableId} for CRUD and schema operations.
- Logging is set to ERROR by default in nocodb_mcp_server.py to reduce noise; adjust logging level if you need more verbose output during development.
- Ensure you provide correct NOCODB_BASE_ID to avoid base-id resolution issues; the base ID can usually be found in the Nocodb URL or via API responses when querying metadata.
- For MCP CLI installation, you can pass environment variables via -v KEY=VALUE or via an .env file with -f .env in the mcp install step.
- If you run into authentication errors, verify that the API token has sufficient permissions for the base and resources you are accessing.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP