Bitly MCP Server
resmiUbah asisten AI Anda menjadi pusat pemasaran digital yang membuat, mengatur, dan menganalisis tautan serta Kode QR sesuai permintaan.
Dokumentasi
Server MCP Bitly
Selamat datang di panduan Server MCP Bitly.
Jika Anda sudah di sini, kemungkinan besar Anda sudah tahu apa itu Server MCP, tetapi jika Anda perlu pengantar, lihat halaman Apa itu MCP? kami.
Server MCP Bitly menyediakan akses ke semua fungsionalitas yang Anda harapkan dari antarmuka Bitly -- seperti API Bitly, seperti situs web bitly.com, seperti Ekstensi Chrome Bitly, seperti aplikasi Seluler Bitly -- tetapi kali ini untuk agen AI pilihan Anda.
Ingin menggunakan Bitly dengan ChatGPT? Server MCP Bitly atau GPT Kustom Bitly. Ingin menggunakan Bitly dengan Claude? Server MCP Bitly. Ingin menggunakan Bitly dengan Cursor, VSCode, atau Windsurf? Server MCP Bitly.
Penyiapan Cepat
Server MCP Bitly dihosting di https://api-ssl.bitly.com/v4/mcp.
Opsi Autentikasi:
- OAuth 2.1 (Direkomendasikan) – Untuk klien yang mendukung OAuth, ini menyediakan autentikasi berbasis token yang aman dengan pendaftaran klien otomatis
- Token API – Untuk penyiapan yang lebih sederhana atau klien tanpa dukungan OAuth, gunakan token API Bitly Anda dari https://bitly.com/settings/api
Berikut adalah kisi konfigurasi dengan tautan ke instruksi terperinci -- jika kami melewatkan satu yang Anda gunakan, Anda akan menemukan panduan di halaman Detail Konfigurasi. Kami akan menambahkan panduan konfigurasi tambahan seiring waktu.
| Agen AI | Instruksi Konfigurasi | Catatan |
|---|---|---|
| ChatGPT | Konfigurasikan ChatGPT | OAuth dengan Pendaftaran Klien Dinamis |
| Antarmuka Web Claude (claude.ai) | Konfigurasikan Claude Web | OAuth dengan Pendaftaran Klien Dinamis |
| Claude Desktop | Konfigurasikan Claude Desktop | Mendukung OAuth dan token API |
| Claude Code | Konfigurasikan Claude Code | Transport HTTP – mendukung OAuth dan token API |
| Cursor | Konfigurasikan Cursor | Transport HTTP – mendukung OAuth dan token API |
| VS Code | Konfigurasikan VS Code | Transport HTTP – mendukung OAuth dan token API |
| Windsurf | Konfigurasikan Windsurf | Menggunakan proksi npx untuk koneksi lokal |
| Sebagian besar agen kompatibel HTTP lainnya | Periksa bagian Konfigurasi kami | Pengaturan HTTP generik berfungsi untuk sebagian besar |
Konfigurasi
Claude Code
Tambahkan ke ~/.claude/mcp.json:
Untuk OAuth (direkomendasikan):
{
"mcpServers": {
"Bitly": {
"type": "http",
"url": "https://api-ssl.bitly.com/v4/mcp"
}
}
}
Untuk Token API:
{
"mcpServers": {
"Bitly": {
"type": "http",
"url": "https://api-ssl.bitly.com/v4/mcp",
"headers": {
"Authorization": "Bearer YOUR_BITLY_AUTH_TOKEN"
}
}
}
}
Mulai ulang Claude Code setelah menambahkan konfigurasi.
Cursor
Tambahkan ke ~/.cursor/mcp.json:
Mulai ulang Cursor setelah menambahkan konfigurasi.
Claude Desktop
Tambahkan ke file konfigurasi Claude Anda:
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"
}
}
}
Untuk Token API (menggunakan proksi npx):
Prasyarat: Memerlukan Node.js 20 LTS atau lebih tinggi dengan dukungan
npx.
{
"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"
}
}
}
}
Mulai ulang Claude Desktop setelah menambahkan konfigurasi.
VS Code
Tambahkan ke ~/.vscode/mcp.json di ruang kerja Anda:
{
"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
Tambahkan ke ~/.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:
"Alat Bitly apa yang tersedia?"
"Tolong pendekkan URL ini: https://example.com/very-long-url"
Dari sana Anda seharusnya sudah siap!
---