Run the TrendsAGI Model Context Protocol server from the Python SDK so Claude Desktop, Claude Code, Cursor, VS Code and other MCP clients can list trends, read insights and analytics, and fetch recommendations. Tools are read-only unless you start the server with --allow-writes. This page lists the required credentials, setup example, mapped endpoints, and production notes.
Base URL
https://staging-api.trendsagi.com111
Routes
18
Guides
3
Languages
Give any MCP client live trend tools in one command
Run the TrendsAGI Model Context Protocol server from the Python SDK so Claude Desktop, Claude Code, Cursor, VS Code and other MCP clients can list trends, read insights and analytics, and fetch recommendations. Tools are read-only unless you start the server with --allow-writes.
Install
pip install "trendsagi[mcp]" # Python 3.10+Required credentials
# Claude Code
claude mcp add trendsagi --env TRENDSAGI_API_KEY=<TRENDSAGI_API_KEY> -- trendsagi mcp
# Claude Desktop, Cursor or VS Code (MCP JSON config)
{
"mcpServers": {
"trendsagi": {
"command": "trendsagi-mcp",
"env": { "TRENDSAGI_API_KEY": "<TRENDSAGI_API_KEY>" }
}
}
}
# Tools: list_trends, list_trend_categories, search_trend_insights, get_trend,
# get_trend_ai_insights, get_trend_analytics, list_recommendations,
# list_crisis_events, list_watchlist, get_api_usage
# Opt-in write tools (--allow-writes): add_to_watchlist, update_recommendation# Save as quickstart.py
python quickstart.py1. Install
Add SDK/dependency for this integration path.
2. Authenticate
Set API key and any provider-specific credentials.
3. Map Endpoints
Use mapped endpoints below to build deterministic flow.
4. Harden
Add rate-limit backoff, idempotency, and safety gates.
Endpoint Mapping
Each integration is mapped to specific API endpoints so teams can compose deterministic workflows.
Production Notes