Skip to main content
Glama
andre-carbajal

affinity-mcp-bridge

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/sse

You 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-bridge

Then 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:

  1. Open Affinity by Canva.

  2. Enable Settings > Model Context Protocol > Enable MCP server.

  3. Restart Affinity.

  4. 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 smoke

npm run smoke starts the bridge and lists MCP tools. If Affinity is not reachable, it should still list affinity_status.

License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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