MCP ExplorerExplorer

Nocodb Mcp Server

@edwinbernaduson a year ago
24 MIT
FreeCommunity
AI Systems
# nocodb mcp server This is the documentation for nocodb mcp server. ## Installation To install nocodb mcp server, run the following command: ```bash npm install nocodb-mcp-server ``` ## Usage Start the nocodb mcp server: ```bash npx nocodb-mcp-server ``` ## Configuration You can customize the behavior of nocodb mcp server through a configuration file. Here is an example of the configuration file: ```json { "port": 3000, "database": { "type": "sqlite", "url": "path/to/database.sqlite" } } ``` ## Contribution Contributions are welcome! Please follow these steps: 1. Fork this repository 2. Create your feature branch (`git checkout -b feature/YourFeature`) 3. Commit your changes (`git commit -m 'Add some feature'`) 4. Push to the branch (`git push origin feature/YourFeature`) 5. Create a new Pull Request ## License This project is licensed under the MIT License. For more details, please refer to the LICENSE file.

Overview

What is Nocodb Mcp Server

The nocodb-mcp-server is a server that facilitates interaction with a Nocodb database using the Model Context Protocol (MCP), allowing users to perform CRUD operations on Nocodb tables.

Use cases

Use cases for nocodb-mcp-server include managing user data in applications, automating data entry processes, and integrating with other services to enhance data workflows.

How to use

To use the nocodb-mcp-server, set up your environment by installing Node.js and TypeScript, then configure the required environment variables in a .env file. After that, you can execute commands to create, read, update, and delete records in your Nocodb database.

Key features

Key features of nocodb-mcp-server include seamless CRUD operations, support for file uploads to create tables, and compatibility with modern TypeScript development practices.

Where to use

Nocodb-mcp-server can be used in various fields such as web development, data management, and application integration where a database is required for storing and manipulating data.

Content

MseeP Badge

NocoDB MCP Server

smithery badge

Introduction

The NocoDB MCP Server enables seamless interaction with your NocoDB database using the Model Context Protocol (MCP). This server makes it easy to perform CRUD (Create, Read, Update, Delete) operations on NocoDB tables through natural language commands.

Example Prompt

[Get Records]
get data from nocodb, table: Shinobi

[Create Record]
add new row, with name: sasuke-2
add other row, with name: naruto-2

[Update Record]
update all rows, remove suffix -

[Delete Record]
delete all rows with name naruto

[Add Column]
add column with name: Age

update all rows, set Age to 18

[Delete Column]
delete column with name: Age

Example Prompt - Upload File

[Create table]
from the json files
put on nocodb database
table name is TableShinobi

JSON location file in: example_upload.json

Example Prompt - Bulk Create Records and Bulk Delete Records

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} 

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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers