Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

docs: update auth section for mcp

Carl-Gerhard Lindesvärd8291d64479a7
diff --git a/apps/public/content/docs/mcp/index.mdx b/apps/public/content/docs/mcp/index.mdx
index 4b17b3000..38d196fb0 100644
--- a/apps/public/content/docs/mcp/index.mdx
+++ b/apps/public/content/docs/mcp/index.mdx
@@ -13,15 +13,15 @@ https://api.openpanel.dev/mcp
## Authentication
-### Why `?token=` instead of headers
-
-MCP clients establish a long-lived SSE connection to the server. Most MCP clients do not support setting custom HTTP headers on SSE connections — only on the initial HTTP request. Because of this, the token is passed as a **query parameter** instead:
+The token can be passed as a query parameter or an `Authorization` header — both are equivalent:
```
https://api.openpanel.dev/mcp?token=YOUR_TOKEN
```
-The `Authorization: Bearer` header is also accepted as a fallback, but `?token=` is the recommended approach for MCP clients.
+```
+Authorization: Bearer YOUR_TOKEN
+```
### Token format