Lark Base logo

Lark Base

Organization
Lark-Base-Team

Lark Base MCP Server(w/ Personal Token)

PublisherLark-Base-Team
Repositorylark-base-mcp-node-server
LanguageTypeScript
Forks
4
Stars
10
Available tools
13
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Lark Base exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 13 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    10 stars and 4 forks from the linked repository.

base-mcp-server

A Model Context Protocol server that provides read and write access to Feishu Base (飞书多维表格) databases. This server enables LLMs to inspect database schemas, then read and write records.

Usage

1. Install Node.js

Make sure Node.js is installed on your machine.

2. Obtain Base Tokens

Get the appToken and personalBaseToken for your base account.

3. Install MCP Server Package Globally

Install the MCP server package globally using npm:

bash
npm install -g @lark-base-open/mcp-node-server

4. MCP Server Configuration

In your MCP server configuration file, add the following:

json
{
  "mcpServers": {
    "base-mcp-server": {
      "command": "npx",
      "args": [
        "@lark-base-open/mcp-node-server",
        "-a",
        "appToken of base",
        "-p",
        "personalBaseToken of base"
      ]
    }
  }
}

Note: If you are using Claude, you will need to add the MCP configuration through the Developer option in the Claude client settings. You can access this in the Settings menu, and then add the MCP server details under the relevant section.

tokens

You need get two tokens before using this mcp server.

  • personalBaseToken: find Base Plugin UI in your base, and access Custom Plugin->Get Authorization Code Video

  • appToken: You can obtain the appToken quickly through a Developement Tool plugin. Here’s a simplified step-by-step process on how to do it: Video

Components

Tools

  • list_tables

    • Lists all tables in a base
    • No input parameters required
  • list_records

    • Lists records from a specified table
    • Input parameters:
      • tableId (string, required): The ID of the table to query
  • get_record

    • Gets a specific record by ID
    • Input parameters:
      • tableId (string, required): The ID of the table
      • recordId (string, required): The ID of the record to retrieve
  • create_record

    • Creates a new record in a table
    • Input parameters:
      • tableId (string, required): The ID of the table
      • fields (object, required): The fields and values for the new record
  • update_record

    • Updates a record in a table
    • Input parameters:
      • tableId (string, required): The ID of the table
      • recordId (string, required): The ID of the record
      • fields (object, required): The fields to update and their new values
  • delete_record

    • Deletes a record from a table
    • Input parameters:
      • tableId (string, required): The ID of the table
      • recordId (string, required): The ID of the record to delete
  • create_table

    • Creates a new table in a base
    • Input parameters:
      • name (string, required): Name of the new table
      • fields (array, required): Array of field definitions (name, type, description, options)
  • update_table

    • Updates a table's name
    • Input parameters:
      • tableId (string, required): The ID of the table
      • name (string, required): New name for the table
  • delete_table

    • Deletes a table
    • Input parameters:
      • tableId (string, required): The ID of the table to delete
  • list_fields

    • Lists all fields in a table
    • Input parameters:
      • tableId (string, required): The ID of the table
  • create_field

    • Creates a new field in a table
    • Input parameters:
      • tableId (string, required): The ID of the table
      • nested (object, required): Field configuration object containing:
        • field (object, required): Field definition with name, type, and other properties
  • update_field

    • Updates a field in a table
    • Input parameters:
      • tableId (string, required): The ID of the table
      • fieldId (string, required): The ID of the field
      • nested (object, required): Updated field configuration
  • delete_field

    • Deletes a field from a table
    • Input parameters:
      • tableId (string, required): The ID of the table
      • fieldId (string, required): The ID of the field to delete

Development

To get started with development:

  1. Install Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm dev to start the development server
  5. Run npm test to run tests
  6. Build with npm build

Available scripts:

  • npm dev: Build and run the server in development mode
  • npm start: Run the server
  • npm test: Run tests
  • npm test:watch: Run tests in watch mode
  • npm lint: Run ESLint
  • npm build: Build the project
  • npm build:watch: Watch for changes and rebuild automatically

Project Structure

.
├── src/                # Source code
│   ├── index.ts       # Main entry point(stdio)
│   ├── index.sse.ts   # SSE entry point
│   ├── service/       # Service implementations
│   ├── types/         # TypeScript type definitions
│   ├── utils/         # Utility functions
│   └── test/          # Test files
├── dist/              # Compiled output

Dependencies

Main dependencies:

  • @lark-base-open/node-sdk: Feishu Base Node.js SDK
  • @modelcontextprotocol/sdk: Model Context Protocol SDK
  • express: Web framework
  • zod: Schema validation

License

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "base-mcp-server": {
      "command": "npx",
      "args": [
        "@lark-base-open/mcp-node-server",
        "-a",
        "appToken of base",
        "-p",
        "personalBaseToken of base"
      ]
    }
  }
}

Available Tools

  • list_records

    List records from a table

  • list_tables

    List tables from a app

  • create_table

    在一个base app(多维表格) 中创建表单。需要事先获取app token。让用户直接提供app token或者一个base的url,如果没有,用creat_base创建一个app获取app token, 不要伪造app token

  • update_table

    更新一个base app(多维表格)中的表单,如果返回了url,用markdown格式显示这个url,并引导用户访问这个url

  • delete_table

    Delete a table in a base app(多维表格)

  • list_fields

    Get field information for a form in a base app (多维表格). If a URL is returned, display this URL in Markdown format and guide the user to visit this URL.

  • create_field

    Create a field in a form in a base app (多维表格). If a URL is returned, display this URL in Markdown format and guide the user to visit this URL.

  • update_field

    Update a field in a form in a base app (多维表格). If a URL is returned, display this URL in Markdown format and guide the user to visit this URL.

  • delete_field

    Delete a field in a form in a base app (多维表格). If a URL is returned, display this URL in Markdown format and guide the user to visit this URL.

  • create_record

    Create a record in a table.

  • delete_record

    Delete a record from a table

  • update_record

    Update an existing record in a table

  • get_record

    Get a single record by ID

Use Lark Base MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Lark Base is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Lark Base as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Lark Base MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "lark-base": {
      "command": "npx",
      "args": [
        "-y",
        "@lark-base-open/mcp-node-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Lark Base MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Lark Base MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Lark Base to help me with this task?
Lark Base
Sure. I read it.
Here is what I found using Lark Base.

Frequently asked questions

What is the Lark Base MCP server used for?

Lark Base is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Lark Base MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Lark Base with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Lark Base MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Lark Base connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Lark Base MCP to TypingMind?

Lark Base runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Lark Base MCP provide in TypingMind?

Lark Base exposes 13 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Lark Base MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Lark Base requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇