npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@makeappeasy/nocodb-mcp-server

v1.1.3

Published

Comprehensive NocoDB MCP Server with 13 powerful tools for database operations, table management, relationships, and custom API calls

Downloads

16

Readme

MseeP Badge

NocoDB MCP Server

smithery badge

Introduction

The NocoDB MCP Server provides a comprehensive toolkit for interacting with your NocoDB database through the Model Context Protocol (MCP). With 13 powerful tools, this server enables you to perform advanced database operations including CRUD operations, table management, relationship creation, and custom API calls - all through natural language commands.

Example Prompts

Basic CRUD Operations

[Get Records with Filtering]
Get all active users from the Users table where age > 25
Filter: (age,gt,25)~and(status,eq,active)

[Create Single Record]
Add a new user named John Doe with email [email protected]

[Bulk Create Records]
Create 5 new products from the product_list.json file

[Update Record]
Update user ID 42 - change status to 'premium'

[Bulk Delete]
Delete all inactive users from last year

Advanced Table Management

[Create New Table]
Create a Products table with columns:
- Name (text)
- Price (number)
- InStock (checkbox)
- CreatedAt (datetime)

[Add Column]
Add a 'Description' text column to the Products table

[Remove Column]
Remove the obsolete 'LegacyCode' column from Products

Table Relationships

[One-to-Many Relationship]
Create a relationship between Teams and Members tables
One team can have many members

[Many-to-Many Relationship]
Link Students and Courses tables
Students can enroll in multiple courses

[Belongs To Relationship]
Connect Orders to Customers
Each order belongs to one customer

Custom API Operations

[Custom API Call]
Make a GET request to /api/v2/meta/bases/{baseId}/info
to get detailed base information

[Complex Filtering]
Find all orders from last month with amount > $1000
and status = 'completed', sorted by date

Real-World Use Cases

1. E-Commerce Database Setup

Create an e-commerce database structure:
1. Create Products, Categories, Customers, and Orders tables
2. Link Products to Categories (many-to-many)
3. Link Orders to Customers (belongs-to)
4. Link Orders to Products (many-to-many through OrderItems)

2. Data Migration from JSON

Migrate data from legacy system:
1. Create tables from JSON schema files
2. Bulk import records from exported data
3. Establish relationships between imported tables
4. Validate data integrity with custom API calls

Example file: example_upload.json

3. Analytics and Reporting

Generate monthly sales report:
1. Filter orders by date range
2. Join with customer and product data
3. Calculate totals using custom API endpoints
4. Export results in required format

Visual Examples

Bulk Operations Demo

bulk_sample1 bulk_sample2 bulk_sample3

About This Fork

This repository is a TypeScript-based fork of NocoDB-MCP-Server. It retains the core functionality while improving maintainability and compatibility with modern TypeScript development practices.

Setup

Ensure that Node.js and TypeScript are installed, then execute:

npm install
npm run build

Configuration

Define the required environment variables in a .env file:

NOCODB_URL=https://your-nocodb-instance.com
NOCODB_API_TOKEN=your_api_token_here
NOCODB_BASE_ID=your_base_id_here

Tip: You can copy the template from env.example and fill in your values.

How to Obtain NOCODB_BASE_ID

To find your NOCODB_BASE_ID, check the URL of your Nocodb instance.
For example: https://app.nocodb.com/#/wi6evls6/pqmob3ammcknma5/maty9c5xkmf4012
In this URL format:

https://app.nocodb.com/#/{USERNAME}/{NOCODB_BASE_ID}/{TABLE_ID}

Integration with Claude Desktop

Modify claude_desktop_config.json to include:

{
  "mcpServers": {
    "nocodb": {
      "command": "node",
      "args": ["{working_folder}/dist/start.js"],
      "env": {
        "NOCODB_URL": "https://your-nocodb-instance.com",
        "NOCODB_BASE_ID": "your_base_id_here",
        "NOCODB_API_TOKEN": "your_api_token_here"
      }
    }
  }
}

Direct call from CLI

You can directly call the MCP server from the command line:
NOCODB_URL, NOCODB_API_TOKEN, and NOCODB_BASE_ID are required parameters.
NOCODB_URL=https://app.nocodb.com if you are using NocoDB cloud.

npx -y nocodb-mcp-server {NOCODB_URL} {NOCODB_BASE_ID} {NOCODB_API_TOKEN} 

Testing CLI

To run the tests, execute:

npx -y @wong2/mcp-cli npx nocodb-mcp-server {NOCODB_URL} {NOCODB_BASE_ID} {NOCODB_API_TOKEN} 

Comprehensive Tool Suite (13 Tools)

Data Operations

  1. nocodb-get-records - Advanced record retrieval with filtering, sorting, pagination, and field selection
  2. nocodb-post-records - Create single records with data validation
  3. nocodb-post-records-bulk - Efficiently create multiple records in batch
  4. nocodb-patch-records - Update existing records with partial data
  5. nocodb-delete-records - Remove individual records safely
  6. nocodb-delete-records-bulk - Batch delete multiple records

Table Management

  1. nocodb-get-list-tables - Discover all available tables in your base
  2. nocodb-get-table-metadata - Inspect table structure, columns, and configurations
  3. nocodb-create-table - Design and create new tables with custom schemas
  4. nocodb-alter-table-add-column - Dynamically add columns to existing tables
  5. nocodb-alter-table-remove-column - Remove unnecessary columns safely

Advanced Features

  1. nocodb-create-table-relation - Establish powerful relationships between tables:

    • Has Many (hm): One-to-many relationships
    • Many to Many (mm): Many-to-many with junction tables
    • Belongs To (bt): Many-to-one relationships
  2. nocodb-custom-api-call - Execute any NocoDB API endpoint for:

    • Complex queries beyond standard operations
    • Administrative tasks
    • Custom integrations
    • Direct API access when needed

API Functions

For detailed information about available API functions, please refer to API_FUNCTION.md.

Project Structure

/project-root
  ├── src/            # TypeScript source files
  ├── dist/           # Compiled JavaScript output
  ├── .env            # Environment variable configurations
  ├── package.json    # Project dependencies and scripts
  ├── tsconfig.json   # TypeScript settings

Contribution Guidelines

Contributions are encouraged! Feel free to open issues or submit pull requests.

License

This project is distributed under MIT.