Xquik runs a Model Context Protocol server that lets AI agents and development tools interact with your Xquik account programmatically.Documentation Index
Fetch the complete documentation index at: https://docs.xquik.com/llms.txt
Use this file to discover all available pages before exploring further.
This page covers the API MCP server at
https://xquik.com/mcp for
authenticated account actions. For read-only documentation search, use the
Docs MCP server at https://docs.xquik.com/mcp.Connection
Protocol
HTTP with StreamableHTTP transport for MCP clients.
Endpoint
Connect clients to
https://xquik.com/mcp.Authentication
Use an API key in
x-api-key or OAuth 2.1 Bearer tokens.GET and POST requests to /.well-known/mcp.json return the MCP registry
server card JSON directly. GET /.well-known/mcp/server-card.json returns the
same card for clients that read the nested server-card path. OAuth-aware clients
can also read GET /.well-known/oauth-protected-resource/.well-known/mcp.json
for protected-resource metadata for https://xquik.com/mcp.
Registry-card clients receive a streamable-http remote for
https://xquik.com/mcp with Authorization: Bearer {XQUIK_API_KEY}. Create
the key from https://dashboard.xquik.com/en/account; direct client examples
below can still send the same key with x-api-key when the client supports
custom headers.
Unauthenticated requests to https://xquik.com/mcp return 401 with a
WWW-Authenticate: Bearer challenge. The challenge includes
resource_metadata="https://xquik.com/.well-known/oauth-protected-resource/mcp",
scope="mcp:tools", error="invalid_token", and
error_description="Missing or invalid access token". The JSON body is
{ "error": "Authentication required" }. OAuth-capable clients use that
challenge to discover the authorization metadata. API-key clients should send
x-api-key on the first request.
Authentication
The MCP server supports 2 authentication methods:- API key (
x-api-keyheader): 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:explore
Search the API spec. Read-only, no network calls, no credits. Requires MCP authentication to execute.
xquik
Execute authenticated API calls. Cost follows the endpoint.
explore tool
Searches the in-memory API endpoint catalog. Free means no usage credits; the call still requires MCP authentication through an API key or OAuth Bearer token. The sandbox provides:
xquik tool
Executes API calls. The sandbox provides:
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.MCP Server
Best for AI agents, IDE integrations, and natural language workflows. Connect to
https://xquik.com/mcp with x-api-key or OAuth 2.1 Bearer auth. Agents use 2 tools: explore for spec search and xquik for sandboxed API calls.REST API
Best for backend services, automation scripts, and direct programmatic access. Call
https://xquik.com/api/v1/* with an x-api-key header. Use 120 individual operations and file download responses for extraction or draw exports.Setup
Web and terminal clients
- Claude.ai (Web)
- Claude Desktop
- Claude Code
- Codex CLI
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.
Editor clients
- Cursor
- VS Code
- Windsurf
- OpenCode
Add to
~/.cursor/mcp.json (global) or .cursor/mcp.json (project):ChatGPT
3 ways to connect ChatGPT to Xquik: Option 1: Custom GPT (Recommended) Create a Custom GPT and add Xquik as an Action using the OpenAPI schema athttps://xquik.com/openapi.json. Set the API key under Authentication > API Key > Header x-api-key.
Option 2: Agents SDK
Use the OpenAI Agents SDK for programmatic access:
https://xquik.com/mcp as the endpoint. OAuth handles authentication automatically.
Example prompts
Once connected, you can ask your AI agent things like: Monitoring & Events- Start watching @elonmusk for new tweets and replies.
- List the accounts I am currently monitoring.
- Show monitored account activity from today.
- Replay stored events for monitor mon_123 using the last next_cursor as after.
- Stop tracking @elonmusk.
- Search recent X posts about TypeScript.
- Find recent tweets from @vercel.
- Read this tweet: https://x.com/elonmusk/status/1893456789012345678
- Get metrics for this tweet: https://x.com/vercel/status/1893704267862470862
- Get @xquikcom follower count.
- Read @openai profile bio.
- Check whether @elonmusk follows @SpaceX.
- Check whether @vercel and @nextjs follow each other.
- Show current X trends.
- Show top trending topics in the US.
- Check whether AI is trending today.
- Show current Hacker News trends.
- Show top GitHub trending repos today.
- Show fastest-growing startup trends.
- Get Reddit trending topics from the last 12 hours.
- Show popular Wikipedia pages right now.
- Show Google Trends for Turkey.
- Find trending tech news and draft a tweet about one item.
- Pull all replies to this tweet: https://x.com/elonmusk/status/1893456789012345678
- List users who retweeted this tweet: https://x.com/vercel/status/1893704267862470862
- Estimate the cost to extract all followers of @elonmusk.
- Get quote tweets for this post: https://x.com/openai/status/1893456789012345678
- Extract the full thread for this tweet: https://x.com/elonmusk/status/1893704267862470862
- 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 the results of my last giveaway draw.
- Set up a webhook at https://my-server.com/events for new tweets.
- List configured webhook endpoints.
- Remove the webhook pointing to my old server.
- Write a casual launch tweet for my new product.
- Optimize the draft for engagement.
- Score this draft: Just shipped v2.0 of our API. What do you think?
- Improve this tweet to get more replies.
- Analyze how @elonmusk tweets.
- Compare @vercel and @nextjs tweeting styles.
- Show cached tweet performance.
- Save this tweet draft for later.
- Show all saved drafts.
- Set my X account to @myusername.
- Post a tweet saying: Just shipped v2.0!
- Like this tweet: https://x.com/vercel/status/1893704267862470862
- Retweet this: https://x.com/openai/status/1893456789012345678
- Follow @vercel from my connected account.
- Send a DM to user ID 44196397 saying hello.
- Post a tweet saying: New feature! Use public image URL https://example.com/launch.png.
- Show my plan and month-to-date usage.
- Check whether I have enough budget left for 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
Microsoft Agent Framework
Python agents with Microsoft Agent Framework
Migrate from Composio
Replace Composio’s deprecated Twitter MCP