API KEY

X MCP server, with a policy gate.

You paste the keys from your own X developer app and each account becomes its own connection. Gentkey signs every X API call server-side, so an agent can watch mentions and post performance freely while publishing, replying, and deleting each stay behind their own revocable, rate-capped grant.

Your agents connect tohttps://app.gentkey.com/mcpclaude.ai (web & mobile) · Claude Code · Cursor · any MCP client
ACCESS MODEL

What’s free, what needs a grant.

Reads: The account's profile and follower counts, its posts with impressions, likes, reposts and video views, its mentions, post lookup by ID, and the last 7 days of search all work with no grant.

Writes: Posts and threads, replies, and deletes are separate grants. Every write previews as a dry run first; images and video are fetched from public URLs and uploaded to X only on the real call, and video that is still processing comes back as media IDs the agent can finish with.

GrantWhat it governs
x.readProfile, posts and engagement metrics, mentions, post lookup, and recent search — on by default
x.posts.writePosts and threads: text, images, a GIF or a video, and polls
x.replies.writeReplies to posts that mention or quote the account
x.posts.deleteDeleting the account's own posts and replies
CONSTRAINTS

Bounds the gate enforces with arithmetic.

GRANTEDx.posts.write · max posts/24h = 5

With five posts on the account in the last 24 hours, a sixth is denied before X receives it, and a six-post thread is denied outright. The count is X's own, so posts from the X app and other tools count too.

SETUP

Connect once, use everywhere.

Sign in at gentkey.com, add X (api key), then point each client at your endpoint. Every client completes a standard OAuth flow and lands in your Gentkey — your connections, nobody else’s.

claude.ai (web & mobile)

  1. Settings → Connectors
  2. Add custom connector
  3. Paste https://app.gentkey.com/mcp and finish the OAuth prompt

Claude Code

claude mcp add --transport http \
  gentkey https://app.gentkey.com/mcp

Cursor

// .cursor/mcp.json
{
  "mcpServers": {
    "gentkey": { "url": "https://app.gentkey.com/mcp" }
  }
}
IN PRACTICE

Things agents do with X here.

  • Which of this week's posts got the most impressions?
  • Post the launch announcement with the product video, as a dry run first.
  • Turn this changelog into a thread and post it.
  • Reply to the mentions asking how to export.
SECURITY

Custody, gating, and audit — built in.

aes-256-gcm

The model never sees a credential

Your X key is encrypted at rest and injected server-side at call time. Your stored credential never enters a context window.

grants

Writes need a grant

Anything that changes state needs a capability you granted explicitly — revoke it and the next call is denied.

audit_log

A trail you can act on

Every decision is attributed to the agent that made it — allowed, denied, or denied by constraint.

FAQ

Fair questions.

Can it reply to anyone?

No. X accepts replies made through its API only when the post's author mentioned or quoted the account, so replies work for mentions and conversations the account was brought into, plus the account's own threads. Replies are their own grant, separate from posting.

Who pays for X API usage?

Your X developer app. X bills API calls to the app's pay-per-use credits, and reads of your own account's posts and mentions are billed at X's lower owned-reads rate.

Can it quote posts?

Not yet. X reserves quote posts made through its API for Enterprise plans.

Where does the media come from?

Gentkey downloads each image or video from a public https URL when the post is published and uploads it to X: up to 4 JPEG, PNG or WEBP images, or one GIF, or one MP4 or MOV video, with optional alt text.

What happens when an agent calls a X write tool it hasn't been granted?

The call is denied at the gateway — nothing reaches X — and the denial is recorded in the audit log along with the grant that would have authorized it, so you can decide deliberately instead of finding out later.

Where are my credentials stored?

Encrypted at rest (AES-256-GCM) on Gentkey's server and injected server-side at call time. No credential you store with Gentkey ever enters a model's context window or an agent's config file.

Can I use this from claude.ai's free plan?

Yes — and it's the strongest case for a gateway: free claude.ai accounts currently get a single custom connector, so pointing that one slot at Gentkey puts every connector you've linked behind it.

How do I revoke an agent's access?

Revoke the grant (the next write is denied) or revoke the agent's tokens entirely in one click. Other agents and their grants are untouched — no shared key to rotate.

Is Gentkey affiliated with X?

No. Gentkey is an independent MCP gateway. Trademarks belong to their owners; where an official X MCP server exists, Gentkey proxies it and adds custody, gating, and audit on top.

Cut X a smaller key.

Sign in, connect X, and grant your first scoped capability in under a minute.