Skip to content

MCP Server & API Tokens

Marketix ships a built-in Model Context Protocol (MCP) server. It lets any MCP-compatible AI client — Claude, Cursor, ChatGPT, GitHub Copilot, and others — read and create data in your projects on your behalf, authenticated with a personal API token.

Everything you reach through the MCP server is scoped to the projects you belong to. A token grants exactly the access your own account has — nothing more.

  1. Open your Account page and find the API tokens section.
  2. Enter a descriptive name (e.g. “Claude Desktop”) and click Create token.
  3. The plaintext token is shown once, immediately after creation. Copy it now — for security it is never displayed again.

The same section lists your existing tokens (name, created, last used) and lets you revoke any of them. Revoking a token immediately cuts off any client using it.

The MCP server is served over HTTP (Streamable HTTP transport) at:

https://<your-marketix-host>/mcp/marketix

Clients authenticate with a bearer token header:

Authorization: Bearer <your-token>

The exact endpoint URL and this header are also shown in the API tokens section of your Account page for convenient copying.

Point the client at the endpoint above and add the Authorization header. The client then discovers the available tools automatically.

Some desktop clients cannot send a custom header directly. Use the mcp-remote bridge, for example:

{
"mcpServers": {
"marketix": {
"command": "npx",
"args": [
"mcp-remote",
"https://<your-marketix-host>/mcp/marketix",
"--header",
"Authorization: Bearer <your-token>"
]
}
}
}

Once connected, the client can call these tools. All project-scoped tools take a project argument (its ID or name) and only operate on projects you can access.

ToolReturns
list_projectsThe projects you belong to (id, name, your role).
list_linksShort links in a project (slug, target, domain, clicks, status).
list_domainsDomains in a project.
list_qr_codesQR codes in a project (name, type, dynamic/static, scans).
get_link_statsClick statistics for one link over a period — totals plus breakdowns by country, browser, OS, and referrer.
ToolCreates
create_linkA short link in a project (domain, target URL, optional slug/type/expiry/password).
create_qr_codeA QR code (static or dynamic) for a target URL, using the default styling.

New links and QR codes are created exactly as if you had used the web UI, including validation and your project’s link settings. There are no update or delete tools — those actions remain in the web app.