Bitly MCP Server

by anuraj

128 downloads
Not rated
GitHub Website

About

An MCP (Model Context Protocol) server implementation that integrates Claude with Bitly, enabling natural language short url management. This server allows Claude to interact with your Bitly links using everyday language.

Details

Author
anuraj
Downloads
128
Categories
Productivity, Other

- CreateBitlink
- UpdateBitlink
- RetrieveByBitlink
- GetLongUrlFromBitlink
- DeleteBitlink
- GetClickCountByMonth

Add the Docker configuration to claude_desktop_config.json with your BITLY_API_KEY, restart Claude Desktop, then use natural language commands like “Shorten this https://github.com/anuraj/bitly-mcp-server”.

Turn your AI assistant into a digital marketing hub that creates, organizes, and analyzes links and QR Codes on demand.

- Shorten URLs— Ask your AI to shorten a long URL, e.g., "Please shorten this URL:https://example.com/very-long-url"
- Discover available tools— Ask your AI "What Bitly tools are available?" to list the MCP server's capabilities
- Manage Bitly links— Use the MCP server to create, retrieve, and manage short links through the Bitly API

If you're here, you probably already know what an MCP Server is, but if you need the primer, check out ourWhat is MCP? page.

The Bitly MCP Server provides access to all of the functionality you'd expect out of a Bitly interface -- like the Bitly API, like thebitly.comwebsite, like the Bitly Chrome Extension, like the Bitly Mobile app -- but this time for your AI agent of choice.

Want to use Bitly with ChatGPT? Bitly MCP Server orBitly Custom GPT. Want to use Bitly with Claude? Bitly MCP Server. Want to use Bitly with Cursor, VSCode or Windsurf? Bitly MCP Server.

The Bitly MCP Server is hosted athttps://api-ssl.bitly.com/v4/mcp.

- OAuth 2.1 (Recommended)- For clients that support OAuth, this provides secure, token-based authentication with automatic client registration
- API Token- For simpler setups or clients without OAuth support, use your Bitly API token from
https://bitly.com/settings/api

Below is the grid of configurations with links to detailed instructions -- if we're missing one that you use, you will find guidance on theConfiguration Detailspage. We will be adding additional configuration guides over time.

{ "mcpServers": { "Bitly": { "type": "http", "url": "https://api-ssl.bitly.com/v4/mcp" } } }
{ "mcpServers": { "Bitly": { "type": "http", "url": "https://api-ssl.bitly.com/v4/mcp", "headers": { "Authorization": "Bearer YOUR_BITLY_AUTH_TOKEN" } } } }

Restart Claude Code after adding the configuration.

{ "mcpServers": { "Bitly": { "type": "http", "url": "https://api-ssl.bitly.com/v4/mcp" } } }
{ "mcpServers": { "Bitly": { "type": "http", "url": "https://api-ssl.bitly.com/v4/mcp", "headers": { "Authorization": "Bearer YOUR_BITLY_AUTH_TOKEN" } } } }

Restart Cursor after adding the configuration.

macOS:~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "Bitly": { "url": "https://api-ssl.bitly.com/v4/mcp" } } }

Prerequisite:Requires Node.js 20 LTS or higher withnpxsupport.

{ "mcpServers": { "Bitly": { "command": "npx", "args": [ "mcp-remote", "https://api-ssl.bitly.com/v4/mcp", "--header", "Authorization: Bearer ${AUTH_TOKEN}" ], "env": { "AUTH_TOKEN": "YOUR_BITLY_AUTH_TOKEN" } } } }

Restart Claude Desktop after adding the configuration.

Add to ~/.vscode/mcp.json in your workspace:

{ "servers": { "Bitly": { "type": "http", "url": "https://api-ssl.bitly.com/v4/mcp" } } }
{ "servers": { "Bitly": { "type": "http", "url": "https://api-ssl.bitly.com/v4/mcp", "headers": { "Authorization": "Bearer YOUR_BITLY_AUTH_TOKEN" } } } }
{ "mcpServers": { "Bitly": { "command": "npx", "args": [ "mcp-remote", "https://api-ssl.bitly.com/v4/mcp", "--header", "Authorization: Bearer ${AUTH_TOKEN}" ], "env": { "AUTH_TOKEN": "YOUR_BITLY_AUTH_TOKEN" } } } }

For Claude on the web (claude.ai), use OAuth authentication:
- Navigate to your Claude workspace settings
- Go to the MCP servers configuration section
- Add the Bitly MCP Server:

- Server URL:https://api-ssl.bitly.com/v4/mcp

- Authentication:OAuth

When prompted, log in to your Bitly account and authorize the connection. Claude will handle the OAuth flow automatically using Dynamic Client Registration.

Note:OAuth support in Claude Web requires Workspace Admin enablement for Team and Enterprise Plans.
- In ChatGPT, go toSettings > Apps & Connectors > Advanced Settings
- ToggleDeveloper Modeon
- Go back and clickCreate
- Add the Bitly MCP Server:

- Server URL:https://api-ssl.bitly.com/v4/mcp

- Authentication:OAuth

When prompted, log in to your Bitly account and authorize the connection. ChatGPT will handle the OAuth flow automatically using Dynamic Client Registration.

Note:MCP support in ChatGPT requires Plus, Team, Enterprise, or Edu plans. For workspace plans, you must be an admin to access these settings.

The Bitly MCP Server supports two authentication methods:

OAuth 2.1 with Dynamic Client Registration (Recommended)

For clients that support OAuth (like Claude Web, ChatGPT, and other modern AI assistants), OAuth provides:

- Enhanced Security- No need to manually manage API tokens
- Automatic Client Registration- Dynamic Client Registration (DCR) handles client setup automatically
- Token Refresh- Automatic token renewal without manual intervention

When configuring OAuth, your AI client will:
- Redirect you to Bitly's authorization page
- Ask you to log in and authorize the connection
- Automatically register as an OAuth client using DCR
- Receive and manage access tokens transparently

For simpler setups or clients without OAuth support:
- Log in to your Bitly account atbitly.com
- Navigate to Settings → API
- Click Generate Access Token
- Copy the token and store it securely
- Use it in your MCP client configuration as shown in the examples above

"What Bitly tools are available?"
"Please shorten this URL: https://example.com/very-long-url"

The 1Password MCP server creates a bridge that allows MCP clients such as Codex and Kiro to manage your 1Password Environments with secure authorization prompts.

This is the 1st, easiest, and cheapest PPT, slides, presentation AI generation MCP Server in the world.

Persistent memory for any AI assistant. Zero token cost until recall. Stores memories in local SQLite, ranks by 6-factor scoring, returns results 79% smaller than JSON. Works with Claude, ChatGPT, Grok, Cursor, Windsurf, and any MCP client.

A MCP server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.

Enables LLM clients to interact with macOS applications through AppleScript. Built using the @beyondbetter/bb-mcp-server library, this server provides safe, controlled execution of predefined scripts with optional support for arbitrary script execution.

An MCP server for WordPress plugin audits

Connect AI clients to Cal.com scheduling through the Model Context Protocol using the hosted server at mcp.cal.com or a local instance.

Sync Calendars, Scheduling Links, AI Executive Scheduling Assistant, Unified Calendar

Automated document processing and extraction

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.