The gotomyn MCP server lets Claude Desktop, Cursor, and Windsurf create, manage, and analyze your short links without leaving your chat.
Requires an active gotomyn.com subscription and an API key. Get yours at /settings.
Run the following command to start the MCP server:
npx @gotomyn/mcp-server
npx downloads and runs the latest version automatically — no global install needed.
Edit your Claude Desktop config file.
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the following configuration block:
{
"mcpServers": {
"gotomyn": {
"command": "npx",
"args": ["-y", "@gotomyn/mcp-server"],
"env": {
"GOTOMYN_API_KEY": "your_api_key_here"
}
}
}
}
Replace your_api_key_here with your actual API key from /settings. Restart Claude Desktop after saving.
In Cursor: Settings → MCP → Add Server.
In Windsurf: Create or edit .windsurf/mcp.json in your project root.
{
"mcpServers": {
"gotomyn": {
"command": "npx",
"args": ["-y", "@gotomyn/mcp-server"],
"env": {
"GOTOMYN_API_KEY": "your_api_key_here"
}
}
}
}
The gotomyn MCP server exposes 5 tools. Your AI assistant can invoke them naturally from conversation.
Create a short link from a long URL. Optionally set a custom back-half.
List your recent short links with click counts.
Get details for a specific short link by its UID.
Delete a short link permanently.
Get a 30-day analytics summary: total clicks, device breakdown, top countries, last 7 days.
| Error | Cause | Fix |
|---|---|---|
GOTOMYN_API_KEY environment variable is not set |
API key not configured in MCP client env block | Add GOTOMYN_API_KEY to the env block in your config file |
A gotomyn.com subscription is required |
User has no active paid plan (PLAN_REQUIRED) |
Upgrade at gotomyn.com/billing |
Your API key lacks the required scope |
Key was created without the needed scope (read or write) | Revoke the key and create a new one with the required scopes at /settings |
Invalid or missing API key |
Key was revoked or contains a typo | Generate a new API key at /settings |
| "MCP server disconnected" in Claude Desktop | Server crashed or output was corrupted (stdout pollution) | Check that Node.js v20+ is installed; reinstall with npm install -g @gotomyn/mcp-server |
Link not found |
The uid does not exist or belongs to another account | Double-check the uid by running list_links |