mcpField
X
X (Twitter) Trends API

X (Twitter) Trends API

Remote
trendsapi.aiSocial Media0Updated 10w ago

About X (Twitter) Trends API

X (Twitter) Trends API is a hosted trend service for applications and agents that need X topic data. It provides weekly history, growth metrics, and live rankings through a remote MCP server.

Key features

  1. 01Retrieve weekly topic history
  2. 02Calculate topic growth
  3. 03Fetch live trend rankings
  4. 04Provide a REST API

Use cases

  1. 01Track changes in X discussion volume
  2. 02Compare topic growth across periods
  3. 03Check currently trending topics

MCP support

The remote MCP server at `https://api.trendsapi.ai/mcp` exposes `get_trends`, `get_growth`, and `get_top_trends` for history, growth, and live rankings.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://x-twitter.api.trendsapi.ai/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://x-twitter.api.trendsapi.ai/mcpAuth required

Tools

Details

From the project README

Remote MCP server

Hosted MCP at https://api.trendsapi.ai/mcp. Same three operations and catalogs as REST. Token: trendsapi.ai/#get-key.

REST contract: trendsapi-ai/trendsapi.

License: MIT MCP

Tools

MCP toolREST modeRequiredReturns
get_trendsget_time_seriessource, keywordWeekly history
get_growthget_growthsource, keywordPercent change
get_top_trendsget_top_trendstypeLive ranked feed

Sources, feeds, and keyword formats: hub keyword sources and live feeds.

app downloads / app rankings still need an Android bundle ID (com.openai.chatgpt).

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "trend-feeds": {
      "url": "https://api.trendsapi.ai/mcp",
      "transport": "http",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

VS Code

.vscode/mcp.json:

{
  "servers": {
    "trend-feeds": {
      "type": "http",
      "url": "https://api.trendsapi.ai/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

Claude Desktop

{
  "mcpServers": {
    "trend-feeds": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.trendsapi.ai/mcp", "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer YOUR_TOKEN" }
    }
  }
}

Claude.ai: Settings → Connectors → Add custom connector → https://api.trendsapi.ai/mcp.

No local production server in this repo.

License

MIT. See LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.