Lark Bitable MCP server

Connects to Lark Bitable for SQL-like querying of structured data, enabling table listing, schema inspection, and read operations using Lark API credentials.
Back to servers
Provider
Lloyd Zhou
Release date
Mar 20, 2025
Language
Python
Package
Stats
2.5K downloads
2 stars

The Bitable MCP server provides access to Lark Bitable through the Model Context Protocol, allowing users to interact with Bitable tables using predefined tools. This server enables querying and manipulating Bitable data directly from AI assistants that support MCP.

Installation & Configuration

One-Click Installation

To quickly install and configure the server for Claude, use the following command:

PERSONAL_BASE_TOKEN=your_personal_base_token APP_TOKEN=your_app_token uv run --with uv --with bitable-mcp bitable-mcp-install

Replace your_personal_base_token and your_app_token with your actual Bitable API tokens.

Manual Installation

Using uvx

If you prefer manual installation with uvx, ensure uvx is installed first, then add to your Claude settings:

"mcpServers": {
  "bitable-mcp": {
    "command": "uvx",
    "args": ["bitable-mcp"],
    "env": {
        "PERSONAL_BASE_TOKEN": "your-personal-base-token",
        "APP_TOKEN": "your-app-token"
    }
  }
}

Using pip

Alternatively, you can install via pip:

pip install bitable-mcp

Then modify your Claude settings:

"mcpServers": {
  "bitable-mcp": {
    "command": "python",
    "args": ["-m", "bitable_mcp"],
    "env": {
        "PERSONAL_BASE_TOKEN": "your-personal-base-token",
        "APP_TOKEN": "your-app-token"
    }
  }
}

Configure for Zed

To use with Zed editor, add to your Zed settings.json:

Using uvx:

"context_servers": [
  "bitable-mcp": {
    "command": "uvx",
    "args": ["bitable-mcp"],
    "env": {
        "PERSONAL_BASE_TOKEN": "your-personal-base-token",
        "APP_TOKEN": "your-app-token"
    }
  }
],

Using pip:

"context_servers": {
  "bitable-mcp": {
    "command": "python",
    "args": ["-m", "bitable_mcp"],
    "env": {
        "PERSONAL_BASE_TOKEN": "your-personal-base-token",
        "APP_TOKEN": "your-app-token"
    }
  }
},

Available Tools

The Bitable MCP server provides three main tools:

list_table

Lists all tables available in the current Bitable instance.

  • Returns: A JSON-encoded list of table names.

describe_table

Describes a specific table by its name.

  • Parameters:
    • name (str): The name of the table to describe.
  • Returns: A JSON-encoded list of columns in the table with their details.

read_query

Executes SQL queries to read data from Bitable tables.

  • Parameters:
    • sql (str): The SQL query to execute.
  • Returns: A JSON-encoded list of query results.

Debugging

To debug the server with the MCP inspector (for uvx installations):

npx @modelcontextprotocol/inspector uvx bitable-mcp

This helps troubleshoot any connection or configuration issues with your MCP server.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later