Bitly MCP Server
公式AIアシスタントを、リンクやQRコードをオンデマンドで作成・整理・分析するデジタルマーケティングハブに変えます。
ドキュメント
Bitly MCPサーバー
Bitly MCPサーバーガイドへようこそ。
ここにいらっしゃるということは、MCPサーバーが何かは既にご存知かと思いますが、入門情報が必要な場合は、「MCPとは?」のページをご覧ください。
Bitly MCPサーバーは、Bitly API、bitly.comウェブサイト、Bitly Chrome拡張機能、Bitlyモバイルアプリなど、Bitlyインターフェースに期待されるすべての機能へのアクセスを、お好みのAIエージェント向けに提供します。
ChatGPTでBitlyを使いたいですか? Bitly MCPサーバーまたはBitlyカスタムGPT。ClaudeでBitlyを使いたいですか? Bitly MCPサーバー。Cursor、VSCode、WindsurfでBitlyを使いたいですか? Bitly MCPサーバー。
クイックセットアップ
Bitly MCPサーバーは https://api-ssl.bitly.com/v4/mcp. でホストされています。
認証オプション:
- OAuth 2.1(推奨) – OAuthをサポートするクライアント向け。自動クライアント登録による安全なトークンベースの認証を提供します。
- APIトークン – よりシンプルなセットアップやOAuthをサポートしないクライアント向け。https://bitly.com/settings/api からのBitly APIトークンを使用します。
以下は、詳細な手順へのリンクを含む設定の一覧です。お使いのものが見つからない場合は、設定詳細ページでガイダンスを確認できます。今後、追加の設定ガイドを順次追加していく予定です。
| AIエージェント | 設定手順 | 備考 |
|---|---|---|
| ChatGPT | ChatGPTの設定 | 動的クライアント登録によるOAuth |
| Claude Webインターフェース (claude.ai) | Claude Webの設定 | 動的クライアント登録によるOAuth |
| Claude Desktop | Claude Desktopの設定 | OAuthとAPIトークンの両方をサポート |
| Claude Code | Claude Codeの設定 | HTTPトランスポート – OAuthとAPIトークンの両方をサポート |
| Cursor | Cursorの設定 | HTTPトランスポート – OAuthとAPIトークンの両方をサポート |
| VS Code | VS Codeの設定 | HTTPトランスポート – OAuthとAPIトークンの両方をサポート |
| Windsurf | Windsurfの設定 | ローカル接続にnpxプロキシを使用 |
| その他ほとんどのHTTP互換エージェント | 設定セクションを確認 | 一般的なHTTPセットアップがほとんどの場合に機能します |
設定
Claude Code
~/.claude/mcp.json に追加:
OAuthの場合(推奨):
{
"mcpServers": {
"Bitly": {
"type": "http",
"url": "https://api-ssl.bitly.com/v4/mcp"
}
}
}
APIトークンの場合:
{
"mcpServers": {
"Bitly": {
"type": "http",
"url": "https://api-ssl.bitly.com/v4/mcp",
"headers": {
"Authorization": "Bearer YOUR_BITLY_AUTH_TOKEN"
}
}
}
}
設定を追加した後、Claude Codeを再起動してください。
Cursor
~/.cursor/mcp.json に追加:
設定を追加した後、Cursorを再起動してください。
Claude Desktop
Claude設定ファイルに追加:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"Bitly": {
"url": "https://api-ssl.bitly.com/v4/mcp"
}
}
}
APIトークンの場合(npxプロキシを使用):
前提条件:
npxサポートを含むNode.js 20 LTS以降が必要です。
{
"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"
}
}
}
}
設定を追加した後、Claude Desktopを再起動してください。
VS Code
ワークスペースの ~/.vscode/mcp.json に追加:
{
"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"
}
}
}
}
Windsurf
~/.windsurf/config.json に追加:
### Claude Web
For Claude on the web (claude.ai), use OAuth authentication:
1. Navigate to your Claude workspace settings
2. Go to the MCP servers configuration section
3. 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.
### ChatGPT
For ChatGPT, use OAuth authentication:
1. In ChatGPT, go to **Settings > Apps & Connectors > Advanced Settings**
2. Toggle **Developer Mode** on
3. Go back and click **Create**
4. 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.
## Authentication
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:
1. Redirect you to Bitly's authorization page
2. Ask you to log in and authorize the connection
3. Automatically register as an OAuth client using DCR
4. Receive and manage access tokens transparently
### API Token (Alternative)
For simpler setups or clients without OAuth support:
1. Log in to your Bitly account at bitly.com
2. Navigate to Settings → API
3. Click Generate Access Token
4. Copy the token and store it securely
5. Use it in your MCP client configuration as shown in the examples above
## Test It Out
Once configured, try asking your AI:
"利用可能なBitlyツールは?"
"このURLを短縮してください: https://example.com/very-long-url"
これで準備完了です!
---