How to connect official Metabase MCP to OpenCode

The official documentation mention OAuth but this kind of stuff is not supported by OpenCode.
Also mention an header that you can’t use really so the actual solution is:

"metabase": {
      "type": "remote",
      "url": "https://metabase.tld/api/mcp",
      "headers": {
        "X-Metabase-Session": "c0sc3d5-b346-445e-a06d-fcabsdf0"
      }
    },

To get the session ID just login on metabase and inspect in the data in your browser dev console for the cookie “metabase.SESSION” and use that value.

Liked it? Take a second to support Mte90 on Patreon!
Become a patron at Patreon!

Leave a Reply

Your email address will not be published. Required fields are marked *