Prerequisites
Before you begin, make sure you have:- Claude Desktop installed (Download)
- An Affonso API key from your dashboard
- Claude Desktop version 0.7.0 or later (for Streamable HTTP support)
Configuration
Step 1: Locate the Config File
The Claude Desktop configuration file location depends on your operating system:Step 2: Add Affonso MCP Server
Open the config file and add the Affonso MCP server configuration:claude_desktop_config.json
Step 3: Restart Claude Desktop
After saving the configuration file, restart Claude Desktop to load the MCP server.Verify Connection
Once Claude Desktop restarts, you should see the Affonso tools available. Try asking:Local Development
For testing against a local Affonso API instance:claude_desktop_config.json
Multiple Environments
You can configure multiple Affonso environments:claude_desktop_config.json
Troubleshooting
Tools not appearing
Tools not appearing
- Verify your API key is correct
- Check that the config file is valid JSON
- Restart Claude Desktop completely (quit and reopen)
- Check Claude Desktop logs for errors
Authentication errors
Authentication errors
- Ensure your API key starts with
sk_live_orsk_dev_ - Verify the key is active in your Affonso dashboard
- Check that the key has the required permissions
Connection timeout
Connection timeout
- Check your internet connection
- Verify
https://api.affonso.iois accessible - Check if a firewall is blocking the connection
Rate limit errors
Rate limit errors
- Wait a moment before retrying
- Check your plan’s rate limits
- Consider upgrading for higher limits
Security Best Practices
- Use separate API keys for different environments
- Rotate your API keys periodically
- Use keys with minimal required permissions
- Never share your configuration file
