MCP server for AI coding agents
Let Claude Code or Cursor draw your architecture as a narrated board
Your coding agent already understands the repo. Connect it to Tierslate and it turns that understanding into a board: services, datastores and the calls between them as real shapes and wires, plus a narrated walkthrough that plays one request end to end. Works with Claude Code, Cursor, VS Code and any client that speaks the Model Context Protocol.
How it works
Create a token
Sign in to Tierslate, open Settings > Security > API tokens and create a token. Copy it: it is shown once.
Add the server to your agent
Paste the command or config below with your token as an Authorization: Bearer header. The server is https://tierslate.com/mcp over Streamable HTTP. There is no OAuth or browser sign-in: the header is the whole of the setup.
Ask for a board
Ask your agent to explain the codebase as a narrated architecture board. It creates the board, writes the walkthrough and gives you the link. Open it and press Play.
Setup
Tierslate authenticates with a personal access token sent as a header, Authorization: Bearer ts_pat_YOUR_TOKEN. It does not use OAuth, so your client should never open a browser to sign in. Create the token first in Settings > Security > API tokens.
Claude Code
Run this once in a terminal, with your token in place of ts_pat_YOUR_TOKEN. The --header part is required:
claude mcp add --transport http tierslate https://tierslate.com/mcp --header "Authorization: Bearer ts_pat_YOUR_TOKEN"Then run /mcp inside Claude Code: tierslate should show as connected. Add --scope user to use it in every project.
To share the setup with a team without committing a token, put this in the project’s .mcp.json and set TIERSLATE_TOKEN in each person’s shell:
{
"mcpServers": {
"tierslate": {
"type": "http",
"url": "https://tierslate.com/mcp",
"headers": {
"Authorization": "Bearer ${TIERSLATE_TOKEN}"
}
}
}
}Cursor
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json in one project. The headers block is what authenticates you:
{
"mcpServers": {
"tierslate": {
"url": "https://tierslate.com/mcp",
"headers": {
"Authorization": "Bearer ts_pat_YOUR_TOKEN"
}
}
}
}VS Code (Copilot agent mode)
Add this to .vscode/mcp.json:
{
"servers": {
"tierslate": {
"type": "http",
"url": "https://tierslate.com/mcp",
"headers": {
"Authorization": "Bearer ts_pat_YOUR_TOKEN"
}
}
}
}Or let VS Code ask for the token once and keep it out of the file:
{
"inputs": [
{
"type": "promptString",
"id": "tierslate-token",
"description": "Tierslate API token (ts_pat_...)",
"password": true
}
],
"servers": {
"tierslate": {
"type": "http",
"url": "https://tierslate.com/mcp",
"headers": {
"Authorization": "Bearer ${input:tierslate-token}"
}
}
}
}Other clients
Any MCP client that supports the Streamable HTTP transport and a custom header works. The server URL is https://tierslate.com/mcp and every request carries Authorization: Bearer ts_pat_YOUR_TOKEN. Keep the token out of files you commit: most clients can read it from an environment variable.
Troubleshooting
If your client opens a browser for sign-in
Close the browser tab: Tierslate has no OAuth sign-in, so that flow cannot finish. It starts when the client reaches the server without an Authorization header and falls back to the MCP spec’s OAuth discovery. The fix is to add the header:
- Claude Code (
/mcpsays the server needs authentication, or offers Authenticate): remove the server and add it again with--header. If it tried to sign in before, choose Clear authentication in/mcpfirst.claude mcp remove tierslate claude mcp add --transport http tierslate https://tierslate.com/mcp --header "Authorization: Bearer ts_pat_YOUR_TOKEN" - Cursor or VS Code (a Needs login or Sign in prompt next to the server): the
headersblock is missing or misspelled inmcp.json. Add it as shown above and restart the server from the MCP settings.
Connection failed, 401
The header arrived but the token was refused. Check that the value is Bearer followed by the whole token (it starts with ts_pat_), and that the token has not been revoked in Settings > Security > API tokens. A revoked or lost token cannot be recovered: create a new one and update the header.
The token comes from an environment variable and still fails
Make sure the variable is set in the shell that starts the client. Claude Code deliberately reads its own credential variables (such as ANTHROPIC_AUTH_TOKEN) as empty inside a server’s headers, so use a name of your own such as TIERSLATE_TOKEN.
Try this prompt
Open your project in the agent and ask:
Read this repo and create a Tierslate board that explains its architecture with a narrated walkthrough. Use one node per deployable service, datastore and external system, group them into zones (for example Frontend, Backend, Data), label the edges with the protocol or the call, then add a walkthrough of 5 to 8 steps that follows one real request end to end. Finish with the share link.Other prompts that work well: “Draw the data flow of the checkout feature and narrate what happens when a payment fails”, “Turn the Mermaid diagram in docs/ into a Tierslate board with a walkthrough”, “Add a second flow called Read path that follows a cache hit”, “Rename the nodes on my board to the real service names in this repo”.
Tools the agent gets
create_board- Create a new board from nodes, edges and zones. Positions are optional: without them the board is laid out automatically. Returns the board id, its URL and the node ids. Follow with add_walkthrough to narrate it.create_board_from_mermaid- Create a new board from Mermaid text (flowchart/graph, sequenceDiagram or erDiagram). A sequenceDiagram also gets a walkthrough, one step per message. Returns the board id, URL and node ids (Mermaid ids).add_walkthrough- Replace one of the board's walkthroughs with these steps; the board's Play button then plays them in order. Without "flow" this is the main walkthrough. With "flow" (a name such as "Read path") it writes that named flow: created if the board has no flow of that name, replaced if it does - the main walkthrough and every other flow are left untouched. Each step lights its nodes (the first is the focus) and/or sends a dot along one edge, while the narration is shown. A step needs at least one node or an edge. With two nodes and no edge, the edge between them is used if there is one.list_flows- The walkthrough flows on one of your boards, main first: id, name, whether it is the main flow, and the step count and step titles of each. Use a name with add_walkthrough's "flow" to replace that flow.get_board- Summary of one of your boards: nodes (id, label, sublabel), edges, zones, the main walkthrough's steps (`steps`) and every walkthrough flow with its steps (`flows`, main first).list_boards- Your most recently updated boards (up to 50): id, name, updated time and URL.update_node- Change the label and/or sublabel of one node on a board. Live viewers see the change at once.share_link- The board's read-only view link, to give to a person. Viewers need a Tierslate account unless the owner makes the board public in Share.
Limits per token: 60 tool calls a minute and 20 new boards an hour; a walkthrough has up to 60 steps. The agent is told how long to wait when it hits one.
Questions
What can the agent do with my token?
Create boards in your account and read or edit the boards you own: rename nodes, write the walkthrough (or several named flows), get a view link. It cannot delete boards, reach team boards, or sign in to Tierslate as you. Revoke a token in Settings and the next call with it is refused.
Does it count against my plan?
Yes, exactly like boards you make yourself: the free plan has no board limit, and neither does Pro. When an account is at its limit the agent is told so and stops.
Does the agent need to lay out the diagram?
No. It sends nodes, edges and zones; positions are optional. Without them the board is laid out automatically, regions are fitted around their members and nothing overlaps.
Is my code sent to Tierslate?
Only what the agent puts on the board: node labels, edge labels and the narration. Your agent reads the code locally; Tierslate never sees the repository.