← Back to Leaderboard
Xxdevplatform

xdevplatform/xmcp

A self-hosted FastMCP bridge that turns X API operations into MCP tools

View on GitHub ↗
MCP Server & SkillQuickstart ↓
Engineering Health (Methodology)
C · 34/100
Maintenance Activity
● Updated 7mo ago
Latest Release
Rolling commits (main)
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance6/35
Fork Adoption16/25
Release Cadence6/20
License Clarity6/20
MCPSelf-HostedCLIAPI
Total Stars
★ 873
24h Growth
+1
7d Growth
+1
Forks
122

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

xdevplatform/xmcp Star History (2026-01-20 - 2026-12-04) ALL-TIME STAR HISTORY (2026-01 – 2026-12) +872 in 318d · avg +3/day 922 461 0 2026-01-20: ★ 12026-02-14: ★ 102026-03-07: ★ 152026-03-28: ★ 162026-04-18: ★ 7172026-05-09: ★ 7582026-05-30: ★ 7772026-06-20: ★ 8022026-07-11: ★ 8302026-08-01: ★ 8412026-08-22: ★ 8502026-09-12: ★ 8542026-10-03: ★ 8582026-10-24: ★ 8642026-11-13: ★ 8702026-12-04: ★ 873 ★ 873 2026-01 2026-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

xmcp is a Python bridge from MCP clients to the X API. On startup, server.py fetches https://api.twitter.com/2/openapi.json and uses FastMCP to expose eligible OpenAPI operations as tools. The HTTP endpoint defaults to http://127.0.0.1:8000/mcp, and X API calls default to https://api.x.com. This keeps tool registration schema-driven rather than requiring a separate wrapper for every operation.

The dependency list includes fastmcp, httpx, python-dotenv, requests-oauthlib, xdk, and xai-sdk. The service is configured through environment variables, including those loaded from a local .env file. Its startup flow opens a browser for OAuth1 consent and waits on a local callback; obtained tokens stay in process memory. The optional test_grok_mcp.py client exercises the MCP endpoint through xAI and is separate from the server runtime path.

Key Capabilities & Differentiators

The tool catalog spans user lookup, recent post search, post analytics, lists, bookmarks, and direct messages, and includes writes such as createPosts and deletePosts. X_API_TOOL_ALLOWLIST takes comma-separated OpenAPI operation IDs, so a deployment can expose only getUsersByUsername and searchPostsRecent, for example. Filtering happens when the schema is loaded, so changing the list requires a restart.

Streaming and webhook coverage is deliberately excluded: matching paths containing /stream or /webhooks, operations tagged Stream or Webhooks, and operations marked x-twitter-streaming: true are filtered out. Tool registration does not guarantee authorization at X, and an allowlist controls what MCP exposes rather than changing what the app or user token is authorized to do.

Trade-offs & Limitations

The schema-driven design saves wrapper maintenance and gives an existing MCP client broad X API reach, but it also ties startup and tool registration to a live upstream specification. Upstream operation or schema changes can affect the available tools after a restart. The dependencies in requirements.txt are unpinned, so a deployment that needs reproducible builds should validate and lock a working set.

Direct API integration is a better fit for a fixed application that needs explicit request handling or streaming and webhooks; a hand-written MCP adapter can keep a small tool contract stable at the cost of more maintenance. Here, browser consent and process-only OAuth1 storage mean restarts need planning for unattended use. Before wider deployment, restrict the tool surface, verify how clients are authenticated, and resolve the unspecified license before redistribution or commercial bundling.

Hardware & Deployment Guide

The local setup calls for Python 3.9+, a virtual environment, dependencies installed from requirements.txt, and an X Developer Platform app. Copy env.example to .env and set X_OAUTH_CONSUMER_KEY, X_OAUTH_CONSUMER_SECRET, and X_BEARER_TOKEN; the bearer token remains required in this setup even when using OAuth1. Register the callback URL, which defaults to http://127.0.0.1:8976/oauth/callback, then start the service with python server.py and complete browser consent.

This is a self-hosted bridge, not an offline X backend: startup needs the remote spec and tool calls go to X. The optional Grok client also needs an xAI API key. A remote client can reach /mcp through a tunnel, but verify client access controls before exposing an account-backed service. X_API_DEBUG defaults to 1, so review log handling and leave credential-printing options disabled in normal operation. No container manifest or published release is listed, and the optional OAuth2 helper generate_authtoken.py is not in the supplied root tree; verify its availability before relying on that path.

Schema-driven registration: FastMCP builds tools from the X OpenAPI document fetched from api.twitter.com at startup.
Explicit exclusions: Path, tag, and x-twitter-streaming rules keep streaming and webhook operations out of the tool catalog.
Startup allowlist: X_API_TOOL_ALLOWLIST selects operation IDs such as getUsersByUsername and searchPostsRecent; changes require a restart.
Write access deserves review: createPosts and deletePosts are listed tool IDs, so a read-only deployment should explicitly omit them.
Credential lifecycle: OAuth1 uses browser consent and a local callback, with tokens kept in memory for the server process lifetime.
Integration check: test_grok_mcp.py exercises the MCP endpoint via xAI; the default server endpoint is http://127.0.0.1:8000/mcp.
Best For

Developers with an X Developer Platform app and an MCP client who want to expose a small set of X operations for local integration or controlled internal use.

Skip If

You need offline access, streaming or webhook delivery, a stable versioned tool contract, or unattended remote operation without building and validating additional authentication controls.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

MCPSelf-HostedCLIAPI
http://<X_OAUTH_CALLBACK_HOST>:<X_OAUTH_CALLBACK_PORT><X_OAUTH_CALLBACK_PATH>

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
xmcp ★873+1Python—A self-hosted FastMCP bridge that turns X API operations into MCP tools
skills204.1k+2.5kPython—A Claude Agent Skills catalog for packaging and reusing task workflows
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
last30days-skill80.4k+3.9kPythonMITAn agent skill with a CLI and MCP bundle for cited, cross-source 30-day research

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/xdevplatform/xmcp.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

xdevplatform/xmcp Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about xmcp

How does an MCP client discover and use X API tools?

Connect the client to http://127.0.0.1:8000/mcp after the server starts and OAuth1 consent completes. Tool availability depends on the OpenAPI specification fetched at startup, the streaming and webhook exclusions, and any configured allowlist. A registered tool can still fail if the X app or user lacks the required access.

Does the server or optional Grok test client need a GPU?

No GPU or dedicated VRAM is indicated. The local workload is a Python service that loads an API specification and forwards requests to X. The optional Grok test client uses the external xAI API rather than running a model locally. Size CPU and memory for the loaded schema and expected concurrent requests, then validate against your workload.

What should a team verify before commercial use or redistribution?

No license is specified in the available repository metadata, and the listed root files contain no license file. Do not assume that visibility on GitHub grants permission to modify or redistribute the code or bundle it into a commercial product. Confirm code rights and review the applicable X API terms separately; self-hosting the bridge does not replace an X Developer Platform app or API authorization.

When is xmcp preferable to direct API calls or a custom MCP adapter?

Use xmcp when MCP tool discovery matters and you want an explicit subset of X operations without writing individual wrappers. Prefer direct API calls when a backend already knows which endpoints it needs and must tightly control authentication, response handling, or streaming and webhook behavior. Prefer a small hand-written MCP adapter when stable tool names and schemas matter more than broad coverage.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining xdevplatform/xmcp? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature xdevplatform/xmcp on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare