Twitter MCP Server

getUserTimeline

Retrieve recent tweets from a specific user's timeline, including optional fields like author details, metrics, and media attachments, using the Twitter MCP Server.

Instructions

Get recent tweets from a user timeline

Input Schema

NameRequiredDescriptionDefault
expansionsNoAdditional fields to expand in the response
maxResultsNoMaximum number of results to return
tweetFieldsNoFields to include in the tweet objects
userFieldsNoUser fields to include in the response
userIdYesThe ID of the user

Input Schema (JSON Schema)

{ "properties": { "expansions": { "description": "Additional fields to expand in the response", "items": { "enum": [ "author_id", "referenced_tweets.id", "in_reply_to_user_id", "attachments.media_keys" ], "type": "string" }, "type": "array" }, "maxResults": { "description": "Maximum number of results to return", "type": "number" }, "tweetFields": { "description": "Fields to include in the tweet objects", "items": { "enum": [ "created_at", "author_id", "conversation_id", "public_metrics", "entities", "context_annotations" ], "type": "string" }, "type": "array" }, "userFields": { "description": "User fields to include in the response", "items": { "enum": [ "username", "name", "profile_image_url", "verified" ], "type": "string" }, "type": "array" }, "userId": { "description": "The ID of the user", "type": "string" } }, "required": [ "userId" ], "type": "object" }
ID: qlfiuj6xn6