Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
X_API_KEYYesThe Consumer Key (API Key) from the X Developer Portal.
X_API_SECRETYesThe Secret Key (API Secret) from the X Developer Portal.
X_ACCESS_TOKENYesThe Access Token generated from the X Developer Portal (requires Read/Write permissions for posting).
X_BEARER_TOKENYesThe Bearer Token from the X Developer Portal.
X_ACCESS_TOKEN_SECRETYesThe Access Token Secret generated from the X Developer Portal (requires Read/Write permissions for posting).

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
post_tweet

Create a new post on X (Twitter). Supports text, polls, and media attachments.

reply_to_tweet

Reply to an existing post on X. Provide the tweet ID or URL to reply to.

quote_tweet

Quote retweet a post on X. Adds your commentary above the quoted post.

delete_tweet

Delete a post on X by its ID.

get_tweet

Fetch a tweet and its metadata by ID or URL. Returns author info, metrics, and referenced tweets.

search_tweets

Search recent tweets by query. Supports keywords, hashtags, from:user, to:user, is:reply, has:media, etc. Uses the recent search endpoint (last 7 days).

get_user

Look up a user profile by username or user ID. Returns bio, metrics, verification status, etc.

get_timeline

Fetch a user's recent posts. Requires the user's numeric ID (use get_user first to resolve username to ID).

get_mentions

Fetch recent mentions of the authenticated user.

get_followers

List followers of a user by their numeric user ID.

get_following

List who a user follows by their numeric user ID.

like_tweet

Like a post on X.

retweet

Retweet a post on X.

upload_media

Upload an image or video to X. Returns a media_id that can be attached to posts. Provide the file as base64-encoded data.

get_metrics

Get engagement metrics for a specific post (impressions, likes, retweets, replies, quotes, bookmarks). Requires the tweet to be authored by the authenticated user for non-public metrics.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Infatoshi/x-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server