What is An MCP server to interact with a Tinybird Workspace from any MCP client.?
Tinybird MCP server allows querying Tinybird Data Sources using the Tinybird Query API, retrieving results from existing Tinybird API Endpoints, and pushing Datafiles. It supports both SSE and STDIO modes.
Documentation
Tinybird MCP server
An MCP server to interact with a Tinybird Workspace from any MCP client.
Features
Query Tinybird Data Sources using the Tinybird Query API
Get the result of existing Tinybird API Endpoints with HTTP requests
Alternatively, you can run the MCP server in SSE mode by running the following command:
uvx mcp-tinybird sse
This mode is useful to integrate with an MCP client that supports SSE (like a web app).
Prompts
The server provides a single prompt:
tinybird-default: Assumes you have loaded some data in Tinybird and want help exploring it.
Requires a "topic" argument which defines the topic of the data you want to explore, for example, "Bluesky data" or "retail sales".
You can configure additional prompt workflows:
Create a prompts Data Source in your workspace with this schema and append your prompts. The MCP loads prompts on initialization so you can configure it to your needs:
The server implements several tools to interact with the Tinybird Workspace:
list-data-sources: Lists all Data Sources in the Tinybird Workspace
list-pipes: Lists all Pipe Endpoints in the Tinybird Workspace
get-data-source: Gets the information of a Data Source given its name, including the schema.
get-pipe: Gets the information of a Pipe Endpoint given its name, including its nodes and SQL transformation to understand what insights it provides.
request-pipe-data: Requests data from a Pipe Endpoints via an HTTP request. Pipe endpoints can have parameters to filter the analytical data.
run-select-query: Allows to run a select query over a Data Source to extract insights.
append-insight: Adds a new business insight to the memo resource
llms-tinybird-docs: Contains the whole Tinybird product documentation, so you can use it to get context about what Tinybird is, what it does, API reference and more.
save-event: This allows to send an event to a Tinybird Data Source. Use it to save a user generated prompt to the prompts Data Source. The MCP server feeds from the prompts Data Source on initialization so the user can instruct the LLM the workflow to follow.
analyze-pipe: Uses the Tinybird analyze API to run a ClickHouse explain on the Pipe Endpoint query and check if indexes, sorting key, and partition key are being used and propose optimizations suggestions
push-datafile: Creates a remote Data Source or Pipe in the Tinybird Workspace from a local datafile. Use the Filesystem MCP to save files generated by this MCP server.
Development# Config
If you are working locally add two environment variables to a .env file in the root of the repository:
TB_API_URL=
TB_ADMIN_TOKEN=
For local development, update your Claude Desktop configuration: