Guides
cfg.me MCP server
Let Claude, Cursor, VS Code or any MCP client create short links on cfg.me, find and change them, and read their click analytics, with a workspace API key.
Endpoint
- URL: https://mcp.cfg.me/mcp
- Transport: Streamable HTTP (JSON-RPC 2.0 over POST); clients send Accept: application/json, text/event-stream.
- Authentication: an x-api-key header with a workspace API key (API keys in your workspace). A read key lists and reads; a write key also creates and changes links.
- The server sends its own instructions in the initialize result, and lists its tools dynamically.
What an agent can do
- Create a short link: Shorten a URL on a brand domain, the workspace address or a custom domain, with an optional custom slug, expiry, password, click limit and smart redirects.
- List and find links: List the workspace’s short links with their status, clicks and destination, filtered by text, tag or domain.
- Read link analytics: Clicks and unique visitors over time, by country, device, browser, operating system, referrer, QR scans and smart-redirect rule.
- Change or turn off a link: Change a link’s destination, slug, tags or expiry, turn it off, or delete it.
One-time secrets stay in the browser
A secret is encrypted in the browser and its key never reaches cfg.me, so the MCP server cannot create one. On cfg.me's homepage, a browser with WebMCP exposes a create_secret tool that encrypts in the page.
Connect a client
Replace <your-api-key> with a key from your workspace.
Claude Code
claude mcp add --transport http cfg-me https://mcp.cfg.me/mcp --header "x-api-key: <your-api-key>"Claude Desktop, Cursor (.cursor/mcp.json) and most clients
{
"mcpServers": {
"cfg-me": {
"type": "http",
"url": "https://mcp.cfg.me/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"cfg-me": {
"type": "http",
"url": "https://mcp.cfg.me/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}Limits and errors
- Plan limits apply as in the app: links per month, custom domains and analytics history.
- Over the rate limit the server answers 429 with Retry-After in seconds.
- Errors carry a code and a message: { "error": "CODE", "message": "…" }.