Skip to main content
Xquik runs a Model Context Protocol server that lets AI agents and development tools interact with your Xquik account programmatically.

Connection

SettingValue
ProtocolHTTP (StreamableHTTP)
Endpointhttps://xquik.com/mcp
AuthAPI key (x-api-key header) or OAuth 2.1 (Bearer token)

Authentication

The MCP server supports 2 authentication methods:
  • API key (x-api-key header): Used by Claude Code, Cursor, VS Code, Windsurf, Codex CLI, OpenCode, and Claude Desktop. Pass your key during the MCP handshake.
  • OAuth 2.1 (Bearer token): Used by Claude.ai (web) and ChatGPT Developer Mode. OAuth handles authentication automatically via browser login. No API key needed. See OAuth 2.1 documentation for the complete authorization flow, token lifetimes, and implementation details.

How it works

The MCP server uses a code-execution sandbox model with 2 tools:
ToolDescriptionCost
exploreSearch the API spec (read-only, no network calls)Free
xquikExecute API calls against your accountVaries by endpoint
The AI agent writes async JavaScript arrow functions that run in a sandboxed environment. Auth is injected automatically.

explore tool

Searches the in-memory API endpoint catalog. The sandbox provides:
interface EndpointInfo {
  method: string;
  path: string;
  summary: string;
  category: string; // account, bot, composition, credits, extraction, integrations, media, monitoring, support, twitter, x-accounts, x-write
  free: boolean;
  parameters?: Array<{ name: string; in: 'query' | 'path' | 'body'; required: boolean; type: string; description: string }>;
  responseShape?: string;
}

declare const spec: { endpoints: EndpointInfo[] };

xquik tool

Executes API calls. The sandbox provides:
declare const xquik: {
  request(path: string, options?: {
    method?: string;  // default: 'GET'
    body?: unknown;
    query?: Record<string, string>;
  }): Promise<unknown>;
};
declare const spec: { endpoints: EndpointInfo[] };
The agent writes code like async () => xquik.request('/api/v1/radar') and the server executes it with auth injected.

MCP vs REST API

Both the MCP server and REST API connect to the same backend, use the same data, and share the same billing.
AspectMCP ServerREST API
Best forAI agents, IDE integrations, natural language workflowsBackend services, automation scripts, programmatic access
ProtocolStreamableHTTP (MCP protocol)Standard REST (JSON over HTTPS)
Authx-api-key header or OAuth 2.1 (Bearer token)x-api-key header per request
Endpointhttps://xquik.com/mcphttps://xquik.com/api/v1/*
Model2 tools (explore + xquik) with code-execution sandbox122 individual endpoints
Unique to REST-File download responses (extraction/draw export)
Unique to MCPAI agent tool descriptions, natural language prompts, server instructions-
When to use MCP: You’re building an AI agent or working in an IDE (Claude Code, Cursor, VS Code, Windsurf) and want the agent to interact with X data through natural language. When to use REST: You’re building a backend service, automation pipeline, or need fine-grained control over API calls, pagination, and file exports.

Setup

Claude.ai supports MCP connectors natively via OAuth. Add Xquik as a connector from Settings > Feature Preview > Integrations > Add More > Xquik. The OAuth 2.1 flow handles authentication automatically. No API key needed.

Example prompts

Once connected, you can ask your AI agent things like: Monitoring & Events
  • “Can you start watching @elonmusk for new tweets and replies?”
  • “What accounts am I currently monitoring?”
  • “Has anything happened on my monitored accounts today?”
  • “Stop tracking @elonmusk, I don’t need updates anymore.”
Search & Lookup User Profiles & Follows
  • “How many followers does @xquikcom have?”
  • “What does @openai’s bio say?”
  • “Does @elonmusk follow @SpaceX back?”
  • “Are @vercel and @nextjs following each other?”
Trends
  • “What’s trending on X right now?”
  • “What are the top trending topics in the US?”
  • “Is there anything trending about AI today?”
Radar & News
  • “What’s trending on Hacker News right now?”
  • “Show me the top GitHub trending repos today”
  • “What are the fastest-growing startups on TrustMRR?”
  • “Get me trending topics from Reddit in the last 12 hours”
  • “What’s popular on Wikipedia right now?”
  • “Show me Google Trends for Turkey”
  • “Find trending tech news and help me compose a tweet about one”
Extractions Giveaways
  • “Pick 3 random winners from this tweet: https://x.com/xquikcom/status/1893456789012345678
  • “Run a giveaway draw where participants must have retweeted and have at least 100 followers.”
  • “Show me the results of my last giveaway draw.”
Webhooks
  • “Can you set up a webhook at https://my-server.com/events for new tweets?”
  • “What webhook endpoints do I have configured?”
  • “Remove the webhook pointing to my old server.”
Tweet Composition
  • “Help me write a tweet about launching my new product”
  • “I want it casual and optimized for engagement”
  • “Score this draft: Just shipped v2.0 of our API. What do you think?”
  • “How can I improve this tweet to get more replies?”
Style Analysis & Drafts
  • “Analyze how @elonmusk tweets”
  • “Compare @vercel and @nextjs tweeting styles”
  • “How are my cached tweets performing?”
  • “Save this tweet draft for later”
  • “Show me all my saved drafts”
  • “Set my X account to @myusername”
X Write Actions Integrations
  • “Set up a Telegram integration to my chat”
  • “List my integrations”
  • “Send a test notification to my Telegram bot”
Account & Usage
  • “What plan am I on and how much have I used this month?”
  • “Do I have enough budget left to run a large extraction?”

Framework guides

Build agents with Xquik’s MCP tools in your preferred framework:

LangChain

Python agents with LangChain + LangGraph

CrewAI

Multi-agent crews with CrewAI

Pydantic AI

Type-safe agents with Pydantic AI

Google ADK

Multi-agent assistants with Google ADK

Mastra

TypeScript agents with Mastra

Migrate from Composio

Replace Composio’s deprecated Twitter MCP

AI agent skill

The Xquik Skill gives AI coding agents deep knowledge of the Xquik API without requiring an MCP connection. Install it to let your agent write API integrations, set up webhooks, and configure MCP connections using Xquik best practices. Works with 40+ AI coding agents including Claude Code, Cursor, GitHub Copilot, Codex, Windsurf, VS Code, Gemini CLI, and more. The skill covers MCP tools and 122 REST API endpoints.
npx skills add Xquik-dev/x-twitter-scraper