Connect Grok, ChatGPT, Claude, Cursor, VS Code and other MCP clients to TrendsAGI so they can list trends, read insights and analytics, and fetch recommendations. Use the hosted server at https://api.trendsagi.com/mcp (OAuth sign-in, read-only), or run the same tools locally from the Python SDK, where write tools are available 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: hosted with sign-in, or local in one command
Connect Grok, ChatGPT, Claude, Cursor, VS Code and other MCP clients to TrendsAGI so they can list trends, read insights and analytics, and fetch recommendations. Use the hosted server at https://api.trendsagi.com/mcp (OAuth sign-in, read-only), or run the same tools locally from the Python SDK, where write tools are available with --allow-writes.
Install
pip install "trendsagi[mcp]" # Python 3.10+Required credentials
# Hosted (no install): add this URL as a remote MCP server or custom connector
# in Grok, ChatGPT or Claude, then sign in to TrendsAGI when prompted.
https://api.trendsagi.com/mcp
# Claude Code, hosted
claude mcp add --transport http trendsagi https://api.trendsagi.com/mcp
# Claude Code, local
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