MCP integration
Connect your AI assistant.
Trunc ships an MCP server. Point Claude Desktop — or any MCP client — at it, and you can shorten links and read your analytics from inside a conversation.
1 · Your token
The MCP server has no login of its own. It identifies you by the JWT this app issues.
Treat this like a password. Anyone holding it can create links as you.
2 · Claude Desktop config
Paste this into claude_desktop_config.json, then quit Claude Desktop completely and reopen it.
claude_desktop_config.json
{
"mcpServers": {
"trunc": {
"url": "https://trunc-mcp-server.onrender.com/mcp",
"headers": {
"Authorization": "Bearer <your-jwt>"
}
}
}
}3 · What you can ask for
Four tools. Every one of them requires your token.
whoamiCheck whether the server can see your token.shorten_urlShorten a URL. Takes an optional customAlias.get_my_linksList the links on your account.get_clicks_by_dayClicks per day, 1–90 days.
Then just ask: “shorten github.com/subhm2004 for me and tell me how my links did this week”