Troubleshooting Guide
Connection Issues
Server Not Responding
Symptoms:
- Tools timeout or return no response
- Error: “Failed to connect to MCP server”
- Claude reports server is unavailable
Solutions:
- Restart the server by re-launching your MCP client, or run it directly:
npm run mcp - Check logs for errors by enabling verbose logging:
export LOG_LEVEL=debug npm run mcp - Verify your environment variables (read by
src/config.ts) are set correctly
Network Connectivity Problems
Symptoms:
- Error: “Network request failed”
- Timeouts when fetching from instances
- Intermittent connection issues
Solutions:
- Check internet connection
- Test instance accessibility:
curl -I https://mastodon.social - Increase timeout settings in config
Access and Permission Issues
Actor Not Found
Symptoms:
- Error: “Actor not found”
- Error: “Failed to resolve actor”
- Empty results when searching for known actors
Solutions:
- Verify actor format:
# Correct formats: @username@instance.com https://instance.com/users/username https://instance.com/@username - Check if actor exists:
curl https://instance.com/.well-known/webfinger?resource=acct:username@instance.com - Try alternative discovery methods
- Restart the server to flush the in-memory actor cache (cache TTL also expires naturally; configure via
CACHE_TTL).
Rate Limiting
Symptoms:
- Error: “Rate limit exceeded”
- HTTP 429 responses
- Requests being throttled
Solutions:
- Wait before retrying (usually 15 minutes)
- Reduce request frequency
- Use different instances to distribute load
- Check rate limit headers:
curl -I https://instance.com/api/v1/accounts/lookup
Private Content Access
Symptoms:
- Error: “Access denied”
- Empty timelines for known active accounts
- Missing posts or limited content
Solutions:
- Respect privacy settings - this is expected behavior
- Try public instances and accounts
- Use accounts with public timelines
- Check instance privacy policies
Configuration Issues
Invalid Configuration
Symptoms:
- Server fails to start
- Error: “Invalid configuration”
- Missing required settings
Solutions:
- Check required environment variables — configuration is supplied via environment variables read by
src/config.ts, not a config file - Review configuration documentation
Claude Desktop Integration
Symptoms:
- Tools not appearing in Claude
- Error: “MCP server not found”
- Connection refused errors
Solutions:
- Check Claude Desktop configuration:
# macOS ~/Library/Application Support/Claude/claude_desktop_config.json # Windows %APPDATA%\Claude\claude_desktop_config.json - Verify server path in config
- Restart Claude Desktop
- Check server logs for connection attempts
Performance Issues
Slow Response Times
Symptoms:
- Tools take a long time to respond
- Timeouts on large requests
- High memory usage
Solutions:
- Restart the server to flush in-memory caches, or shorten
CACHE_TTLin your env. - Reduce request size (limit results, narrow timelines with
limit/maxId/sinceId). - Use more specific queries
- Monitor system resources with OS-level tools (e.g.,
top,htop) or your deployment platform’s metrics.
Memory Issues
Symptoms:
- Server crashes with out-of-memory errors
- Gradual performance degradation
- High memory usage
Solutions:
- Restart server regularly
- Reduce cache size in configuration
- Limit concurrent requests
- Monitor memory usage
Debugging Tips
Enable Verbose Logging
export LOG_LEVEL=debug
npm run mcp
This will show detailed logs for all operations.
Test Individual Components
# Test WebFinger resolution
curl "https://instance.com/.well-known/webfinger?resource=acct:user@instance.com"
# Test ActivityPub endpoint
curl -H "Accept: application/activity+json" "https://instance.com/users/username"
Check Instance Health
# Check if instance is up
curl -I https://instance.com
# Check API availability
curl https://instance.com/api/v1/instance
Monitor Network Traffic
Use browser developer tools or network monitoring tools to see actual HTTP requests and responses.
Getting Help
Before Reporting Issues
- Check this troubleshooting guide
- Review the basic usage guide
- Test with known working instances (mastodon.social)
- Collect relevant logs and error messages
- Note your environment (OS, Node.js version, etc.)
Reporting Bugs
If you’ve found a bug, please report it on GitHub:
Include:
- Steps to reproduce the issue
- Expected vs actual behavior
- Error messages and logs
- System information
Community Support
For help, tips, bug reports, and feature requests: