home / mcp / nocodb mcp server
Provides an MCP interface to manage NocoDB bases, tables, records, views, and attachments.
Configuration
View docs{
"mcpServers": {
"andrewlwn77-nocodb-mcp": {
"command": "npx",
"args": [
"@andrewlwn77/nocodb-mcp"
],
"env": {
"NOCODB_BASE_URL": "http://localhost:8080",
"NOCODB_API_TOKEN": "your_api_token_here"
}
}
}
}You can connect to a NocoDB instance through this MCP server to perform bases, tables, records, views, and file attachments from AI agents. It provides a programmable interface to manage NocoDB data, enabling automated workflows across your teams.
Start by running one of the MCP server configurations below, then connect your MCP client to it. You can perform database operations (list bases, get base info), manage tables and columns, run CRUD on records, execute advanced queries, manage views, bulk insert records, and handle file attachments. Use the available tools to construct sequences that fetch, transform, and persist data in NocoDB.
Prerequisites you need before starting:
- Node.js installed on your machine (recommended LTS version) - npm comes with Node.js
Install the MCP server using one of the provided commands and start it in your environment.
{
"mcpServers": {
"nocodb": {
"command": "npx",
"args": ["@andrewlwn77/nocodb-mcp"],
"env": {
"NOCODB_BASE_URL": "http://localhost:8080",
"NOCODB_API_TOKEN": "your_api_token_here"
}
}
}
}- Use views to access subsets of data efficiently. - Use bulk_insert for large data loads. - Request only the fields you need to minimize payload. - Implement pagination (limit/offset) for large datasets.
Protect your API token and base URL. Rotate tokens regularly and scope permissions to the minimum needed for each client or workflow. Monitor for rate limits and handle errors gracefully in your client.
List all available NocoDB bases/projects.
Fetch detailed information about a specific base.
List all tables in a base.
Get the schema and columns for a table.
Create a new table with a custom schema.
Remove a table from a base.
Add a new column to an existing table.
Delete a column from a table.
Insert a single record into a table.
Insert multiple records at once.
Retrieve a specific record by ID.
List records with filtering and pagination.
Update an existing record.
Delete a record.
Full-text search across records.
Advanced filtering with multiple conditions.
Perform aggregate calculations (sum, count, avg, min, max).
Group records by a column.
List all views for a table.
Create a new view.
Get records from a specific view.
Upload a local file to NocoDB storage.
Upload files from URLs.
Upload and attach a file to a record.
Get attachment information from a record.