Skip to main content
Glama
lloydzhou

Bitable MCP Server

by lloydzhou

list_table

Retrieve all tables from your current Bitable workspace to view and manage your data structure.

Instructions

list table for current bitable

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function list_table executes the tool logic: connects to the bitable database pool, creates a cursor, runs 'show tables' query, fetches results, and returns them as JSON string.
    def list_table() -> list[str]: with conn_pool.connect() as connection: logger.error("connection %r", connection) logger.error("bot %r", connection.bot) logger.error("bot %r", connection.bot.personal_base_token) cursor = connection.cursor() tables = cursor.execute('show tables').fetchall() return json.dumps(tables)
  • The @mcp.tool decorator registers the list_table function as a tool named 'list_table' with its description.
    @mcp.tool( name="list_table", description="list table for current bitable", )

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lloydzhou/bitable-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server