Skip to main content
Glama
pedrot95dev

twitterapi.mcp

by pedrot95dev

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TWITTERAPI_IO_CT0Noct0 cookie from the same session (required for write actions)
TWITTERAPI_IO_KEYNotwitterapi.io API key (required for all tools)
TWITTERAPI_IO_PROXYNoResidential proxy, http://user:pass@ip:port (required for write actions)
TWITTERAPI_IO_AUTH_TOKENNoauth_token cookie from a logged-in X session (required for write actions)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_user_mentionsA

Fetch tweets mentioning a specific X/Twitter user. Makes a single request per call. The caller handles pagination by passing cursor (from a previous next_cursor).

get_tweet_thread_contextA

Fetch one page of the conversation thread around a tweet (to find links in context). Returns the original tweet, intermediate replies up the chain, the tweet itself, and its direct replies; each tweet includes entities.urls with expanded links. Makes exactly one request per call: pages are uneven (a page may be empty while has_next_page is true), so pass next_cursor back as cursor to fetch the next page.

create_tweetA

Create or reply to a tweet via the v2 endpoint. Uses login_cookies built from the account's auth_token/ct0 env vars (requires TWITTERAPI_IO_AUTH_TOKEN, TWITTERAPI_IO_CT0, TWITTERAPI_IO_PROXY).

delete_tweetA

Delete a tweet by ID (must be owned by the logged-in account). Uses login_cookies built from the account's auth_token/ct0 env vars.

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/pedrot95dev/twitterapi.mcp'

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