Configuration Details
Got an AI assistant that's not in our main setup grid? No worries! Here's how to connect any MCP-compatible client to our Bitly server.
Universal HTTP Configuration
For any AI assistant that supports HTTP transport, use this pattern:
json
{
"mcpServers": {
"Bitly": {
"type": "http",
"url": "https://api-ssl.bitly.com/v4/mcp",
"headers": {
"Authorization": "Bearer YOUR_BITLY_AUTH_TOKEN"
}
}
}
}
Just swap out YOUR_BITLY_AUTH_TOKEN with your actual token from bitly.com/settings/api.
Platform-Specific Configs
Continue
Add to your Continue config:
json
{
"mcpServers": {
"Bitly": {
"type": "http",
"url": "https://api-ssl.bitly.com/v4/mcp",
"headers": {
"Authorization": "Bearer YOUR_BITLY_AUTH_TOKEN"
}
}
}
}
Remember to swap out YOUR_BITLY_AUTH_TOKEN with your actual token from bitly.com/settings/api.
Cline
Similar HTTP setup works for Cline and most other MCP clients.
For Stdio-Only Clients
Some clients only support local stdio connections. You can proxy our remote server locally using NPX:
json
{
"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"
}
}
}
}
This uses the handy mcp-remote package to bridge HTTP to stdio.
Remember to swap out YOUR_BITLY_AUTH_TOKEN with your actual token from bitly.com/settings/api.
Verify Your Connection
Once you've added the config, restart your AI assistant and try:
"What Bitly tools are available?"
You should see a list of all our available functions. If not, double-check:
- Your API token is correct and active
- The config syntax is valid JSON
- You've restarted your client after making changes
- Your client supports the transport type you're using
Troubleshooting Config Issues
Config file not found?
- Make sure you're editing the right file for your platform
- Some tools need the config directory created first
JSON syntax errors?
- Use a JSON validator to check your config
- Watch out for trailing commas in JSON
Tool not connecting?
- Verify your API token hasn't expired
- Check that your client supports HTTP transport or stdio with npx