affinity-mcp-bridge
Allows connecting MCP clients to Affinity by Canva's local MCP server, enabling tools for script execution, rendering, SDK documentation access, and script-library operations.
Allows connecting MCP clients to Affinity by Canva's local MCP server, enabling tools for script execution, rendering, SDK documentation access, and script-library operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@affinity-mcp-bridgeshow SDK docs for the TextFrame class"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Affinity MCP Bridge
A standalone MCP stdio bridge for Affinity by Canva's local MCP server.
This lets MCP clients connect to Affinity without depending on Claude Desktop's installed extension path, such as:
C:\Users\<you>\AppData\Roaming\Claude\Claude Extensions\...The bridge starts as a normal stdio MCP server, then forwards tools, resources, and prompts to Affinity's local SSE server.
Requirements
Node.js 20 or newer.
Affinity by Canva 3.2 or newer.
Affinity running with Settings > Model Context Protocol > Enable MCP server turned on.
Restart Affinity after enabling the MCP server.
By default, the bridge connects to:
http://localhost:6767/sseYou can override it with AFFINITY_MCP_SSE_URL.
Related MCP server: tanstack-start-devtools
Use From GitHub
You can run it directly from GitHub:
{
"mcpServers": {
"affinity": {
"command": "npx",
"args": ["-y", "github:andre-carbajal/affinity-mcp-bridge"]
}
}
}Or install it globally:
npm install -g github:andre-carbajal/affinity-mcp-bridgeThen configure your MCP client:
{
"mcpServers": {
"affinity": {
"command": "affinity-mcp-bridge"
}
}
}Codex config.toml
[mcp_servers.affinity]
command = "npx"
args = ["-y", "github:andre-carbajal/affinity-mcp-bridge"]
[mcp_servers.affinity.env]
AFFINITY_MCP_SSE_URL = "http://localhost:6767/sse"If you installed globally:
[mcp_servers.affinity]
command = "affinity-mcp-bridge"Tools
The bridge exposes:
affinity_status: local diagnostic tool that checks whether Affinity MCP is reachable.All tools reported by Affinity's upstream MCP server, when Affinity is running.
Typical upstream tools include script execution, rendering the current spread/selection, SDK documentation access, and Affinity script-library operations.
Troubleshooting
If affinity_status says the bridge cannot connect:
Open Affinity by Canva.
Enable Settings > Model Context Protocol > Enable MCP server.
Restart Affinity.
Check whether another local app is occupying port
6767.
On Windows, you can check the port owner with:
Get-NetTCPConnection -LocalPort 6767 | ForEach-Object {
Get-Process -Id $_.OwningProcess
}If another app owns 127.0.0.1:6767 but Affinity owns ::1:6767, keep the default http://localhost:6767/sse; do not force 127.0.0.1.
Development
npm install
npm run check
npm run smokenpm run smoke starts the bridge and lists MCP tools. If Affinity is not reachable, it should still list affinity_status.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/andre-carbajal/affinity-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server