Skip to main content
Glama
NocoDB MCP Server

NocoDB MCP Server

README.md
# NocoDB MCP Server

A standalone Model Context Protocol (MCP) server that provides full integration with a self-hosted [NocoDB](https://github.com/nocodb/nocodb) instance. This server exposes NocoDB's Meta API and Data API as MCP tools, enabling LLMs like Claude to create, update, and delete bases, tables, connections, fields, views, and records.

## Features

**25 MCP tools** covering the full NocoDB API surface:

| Category | Tools |
|----------|-------|
| **Bases** | list, get, create, update, delete |
| **Sources** | list, create, update, delete |
| **Tables** | list, get, create, update, delete |
| **Fields** | list, create, update, delete |
| **Views** | list, create, update, delete |
| **Records** | list (with filtering/sorting), create, update, delete |

## Prerequisites

- Node.js 18+ (for native `fetch`)
- A running NocoDB instance
- A NocoDB API token (generate from **Team & Settings > Tokens**)

## Setup

```bash
# Install dependencies
npm install

# Build
npm run build

# Run (for testing)
NOCODB_URL=http://localhost:8080 NOCODB_API_TOKEN=your-token npm start
```

## Claude Desktop Configuration

Add this to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "nocodb": {
      "command": "node",
      "args": ["/Users/youruser/Local Apps/nocodb-mcp-server/dist/index.js"],
      "env": {
        "NOCODB_URL": "http://localhost:8080",
        "NOCODB_API_TOKEN": "your-api-token-here"
      }
    }
  }
}
```

## Development

```bash
# Run in dev mode (no build step needed)
NOCODB_URL=http://localhost:8080 NOCODB_API_TOKEN=your-token npm run dev
```

## Architecture

- **Zero NocoDB forking** — communicates entirely via REST API
- **Safe for NocoDB updates** — upgrade NocoDB independently
- **stdio transport** — compatible with Claude Desktop and other MCP clients

TDQS

B3.3/5.0

Scored across 26 tools

Disambiguation5/5

Each tool pairs a distinct action (list/get/create/update/delete) with a clearly distinct resource (base, source, table, field, view, record). The hierarchy base > source/table > field/view > record mirrors NocoDB's data model, so boundaries between tools are unambiguous even where verbs repeat across resources.

Naming Consistency5/5

Every tool follows the exact same `nocodb_<verb>_<resource>` snake_case pattern with verbs drawn from a small consistent set. Pluralization is applied sensibly (create_records/delete_records for batches, singular for single objects).

Tool Count4/5

26 tools is on the heavy side but justified by six nested resource types each needing CRUD. No tool looks redundant; the surface is a natural consequence of the domain rather than padding.

Completeness4/5

Full CRUD exists for bases, tables, fields, views, and records, with sources missing only a getter. Minor gaps: no get_view, get_field, get_source, or fetch-single-record operation, forcing agents to use list variants to inspect a specific object.

Maintenance

ActivityInactive
ResponsivenessOutdated data