x-mcp-server
X MCP Server
Сервер Model Context Protocol (MCP) на TypeScript для официального X API.
Этот проект позволяет MCP-совместимым агентам, включая агентов ChatGPT, безопасно читать из учетных записей X и публиковать в них через локальный сервер, работающий на вашем компьютере.
Сервер поддерживает:
Чтение аутентифицированной учетной записи X.
Поиск пользователей X по имени пользователя.
Чтение постов по идентификатору.
Список последних постов пользователя.
Поиск последних постов с использованием синтаксиса поиска X.
Создание постов и ответов, когда режим записи явно включен.
Выбор отдельной учетной записи X для каждой локальной установки на компьютере.
Работа через
stdioдля локальных MCP-хостов.Работа через локальный Streamable HTTP для ChatGPT через OpenAI Secure MCP Tunnels.
Статус проекта
Это функциональный MVP.
Реализовано:
MCP-сервер через
stdio.MCP-сервер через Streamable HTTP.
Клиент официального X API.
Локальная конфигурация с несколькими учетными записями.
Безопасный режим
read-onlyпо умолчанию.Явный режим
read-writeдля публикации и ответов.Локальный помощник OAuth 2.0 Authorization Code + PKCE для повторной авторизации учетной записи X.
Модульные тесты с использованием Vitest.
Руководство по подключению ChatGPT через OpenAI Secure MCP Tunnels.
Руководство по жизненному циклу локального сервера для ручного и автоматического запуска в Windows.
Related MCP server: X API FastMCP Server
Как это работает
Для локальных MCP-хостов:
MCP host
-> stdio
-> x-mcp-server
-> official X APIДля агентов ChatGPT:
ChatGPT agent
-> custom MCP app
-> OpenAI Secure MCP Tunnel
-> tunnel-client on your computer
-> http://127.0.0.1:3001/mcp
-> x-mcp-server
-> official X APIУчетные данные X остаются локальными. ChatGPT подключается к локальному MCP-серверу через туннель; он не получает ваши токены доступа X.
Доступные MCP-инструменты
Инструмент | Тип | Описание |
| Чтение | Возвращает выбранный локальный профиль, настроенные учетные записи, режим и аутентифицированного пользователя X. |
| Чтение | Возвращает аутентифицированного пользователя X. |
| Чтение | Ищет пользователя X по имени пользователя. |
| Чтение | Читает пост по идентификатору. |
| Чтение | Выводит список последних постов, автором которых является указанный идентификатор пользователя. |
| Чтение | Ищет последние посты с использованием официального синтаксиса запросов X. |
| Запись | Публикует новый пост. Требуется |
| Запись | Отвечает на пост. Требуется |
Инструменты записи блокируются, если не задано X_MCP_MODE=read-write.
Требования
Node.js 20 или новее.
Учетная запись X Developer.
Приложение X Developer с включенным OAuth 2.0.
Области чтения X:
tweet.read users.read.Область записи X для публикации и ответов:
tweet.write.Рекомендуемая область обновления X:
offline.access.Для ChatGPT: включенный режим разработчика.
Для локальных подключений ChatGPT: OpenAI Secure MCP Tunnel и
tunnel-client.
Пошаговая установка
1. Клонирование репозитория
git clone https://github.com/lluisfont/x-mcp-server.git
cd x-mcp-serverЕсли у вас уже есть репозиторий:
cd C:\Repos\x-mcp-server
git pull2. Установка зависимостей
npm install3. Создание локального файла окружения
Copy-Item .env.example .envОтредактируйте .env локально.
Не коммитьте .env. Он может содержать токены доступа, токены обновления, секреты клиента и закрытые ключи API.
4. Настройка активной учетной записи X
Для именованной локальной учетной записи:
X_MCP_ACCOUNT=fcbnews2026
X_MCP_MODE=read-only
X_API_BASE_URL=https://api.x.com
X_ACCOUNT_FCBNEWS2026_USER_ACCESS_TOKEN=
X_ACCOUNT_FCBNEWS2026_REFRESH_TOKEN=Для нескольких учетных записей на одном компьютере:
X_MCP_ACCOUNT=fcbnews2026
X_MCP_MODE=read-only
X_ACCOUNT_FCBNEWS2026_USER_ACCESS_TOKEN=
X_ACCOUNT_FCBNEWS2026_REFRESH_TOKEN=
X_ACCOUNT_LLUISFONT_USER_ACCESS_TOKEN=
X_ACCOUNT_LLUISFONT_REFRESH_TOKEN=X_MCP_ACCOUNT выбирает локальный профиль, используемый этой установкой. Разные компьютеры могут выбирать разные учетные записи без изменения кода.
Также поддерживается устаревший режим одной учетной записи:
X_MCP_ACCOUNT=default
X_USER_ACCESS_TOKEN=Новые установки должны использовать именованные учетные записи.
5. Выбор транспорта
Для локальных MCP-хостов, которые запускают процесс напрямую:
X_MCP_TRANSPORT=stdioДля ChatGPT через локальный туннель:
X_MCP_TRANSPORT=http
X_MCP_HTTP_PORT=3001
X_MCP_HTTP_PATH=/mcp6. Запуск проверки типов и тестов
npm run typecheck
npm test
npm run build7. Запуск MCP-сервера
Для stdio:
npm run devДля локального HTTP:
npm run dev:httpКонечная точка HTTP MCP по умолчанию:
http://127.0.0.1:3001/mcpПроверка работоспособности:
Invoke-RestMethod http://127.0.0.1:3001/healthz | ConvertTo-Json -CompressОжидаемый ответ:
{"ok":true,"transport":"http","activeAccount":"fcbnews2026","mode":"read-only"}Жизненный цикл локального MCP-сервера
Когда ChatGPT использует этот MCP через туннель, должны быть запущены два локальных процесса:
1. The MCP HTTP server
-> npm run dev:http
-> http://127.0.0.1:3001/mcp
2. tunnel-client
-> .\.tools\tunnel-client\tunnel-client.exe run --profile <profile>
-> OpenAI Secure MCP TunnelЕсли любой из процессов остановлен, ChatGPT не сможет использовать MCP-инструменты.
Запуск вручную
Терминал 1:
cd C:\Repos\x-mcp-server
npm run dev:httpТерминал 2:
cd C:\Repos\x-mcp-server
.\.tools\tunnel-client\tunnel-client.exe run --profile x-fcbnewsДержите оба терминала открытыми.
Проверка локальной доступности
Проверьте MCP-сервер:
Invoke-RestMethod http://127.0.0.1:3001/healthz | ConvertTo-Json -CompressПроверьте туннельный клиент:
Invoke-WebRequest http://127.0.0.1:8080/readyz -UseBasicParsingКонечная точка готовности туннеля должна возвращать HTTP 200.
Остановка вручную
Нажмите Ctrl+C в:
Терминале, в котором выполняется
npm run dev:http.Терминале, в котором выполняется
tunnel-client run.
Когда оба процесса остановлены, ChatGPT больше не имеет доступа к локальному MCP-серверу.
Смена учетной записи или режима безопасности
Отредактируйте .env.
Смените активную учетную запись:
X_MCP_ACCOUNT=fcbnews2026Включите режим записи:
X_MCP_MODE=read-writeВернитесь в безопасный режим только для чтения:
X_MCP_MODE=read-onlyПерезапустите MCP HTTP-сервер после изменения .env:
Ctrl+C
npm run dev:httpТуннель может оставаться запущенным, если локальный порт и путь MCP не изменились.
Автоматический запуск при входе в Windows
Для компьютера, который должен регулярно размещать этот MCP, используйте Планировщик заданий Windows.
Создайте локальный скрипт запуска, например:
C:\Users\<user>\mcp-start\x-fcbnews-start.ps1Скрипт:
$repo = "C:\Repos\x-mcp-server"
$profile = "x-fcbnews"
Set-Location $repo
Start-Process powershell.exe -ArgumentList @(
"-NoExit",
"-ExecutionPolicy", "Bypass",
"-Command", "cd `"$repo`"; npm run dev:http"
) -WindowStyle Minimized
Start-Sleep -Seconds 5
Start-Process powershell.exe -ArgumentList @(
"-NoExit",
"-ExecutionPolicy", "Bypass",
"-Command", "cd `"$repo`"; .\.tools\tunnel-client\tunnel-client.exe run --profile $profile"
) -WindowStyle MinimizedЗарегистрируйте запланированное задание:
$action = New-ScheduledTaskAction `
-Execute "powershell.exe" `
-Argument "-ExecutionPolicy Bypass -File `"C:\Users\<user>\mcp-start\x-fcbnews-start.ps1`""
$trigger = New-ScheduledTaskTrigger -AtLogOn
Register-ScheduledTask `
-TaskName "X MCP FCBNews2026" `
-Action $action `
-Trigger $trigger `
-Description "Starts the local X MCP server and OpenAI tunnel-client at Windows logon."Отключите автоматический запуск:
Disable-ScheduledTask -TaskName "X MCP FCBNews2026"Включите его снова:
Enable-ScheduledTask -TaskName "X MCP FCBNews2026"Удалите его:
Unregister-ScheduledTask -TaskName "X MCP FCBNews2026" -Confirm:$falseПолное руководство по жизненному циклу:
docs/local-server-lifecycle.md
Подключение к ChatGPT
Общая схема:
1. Run the MCP server over local HTTP.
2. Create a tunnel in OpenAI Platform.
3. Create a local tunnel-client profile pointing to http://127.0.0.1:3001/mcp.
4. Start tunnel-client.
5. Create a custom MCP app in the ChatGPT agent using Connection: Tunnel.
6. Test x_get_active_account or x_get_me before any write operation.Рекомендуемые настройки пользовательского MCP для ChatGPT:
Connection: Tunnel
Tunnel: <your OpenAI tunnel>
Authentication: No authenticationИспользуйте No authentication, когда MCP-сервер управляет конечными учетными данными сервиса локально, например через .env.
Полное руководство по настройке ChatGPT:
Повторная авторизация учетной записи X
В X Developer настройте приложение:
OAuth 2.0: Enabled
App permissions: Read and write
Callback URI: http://127.0.0.1:3002/callback
Website URL: http://127.0.0.1:3002Выполните:
$env:X_OAUTH_CLIENT_ID = "<OAuth 2.0 Client ID>"
$env:X_MCP_ACCOUNT = "fcbnews2026"
npm run x:oauthОткройте сгенерированный URL, будучи авторизованным в нужной учетной записи X. После авторизации помощник обновит .env, добавив токен выбранной учетной записи.
Перезапустите MCP-сервер после повторной авторизации:
npm run dev:httpЗатем проверьте с помощью:
x_get_active_accountПодробное руководство по OAuth:
Модель безопасности
Сервер по умолчанию запускается в режиме только для чтения:
X_MCP_MODE=read-onlyИнструменты записи требуют:
X_MCP_MODE=read-writeПеред публикацией:
Проверьте активную учетную запись с помощью
x_get_active_account.Подтвердите точный текст для публикации.
Убедитесь, что токен X имеет область
tweet.write.Попросите агента вернуть сгенерированный
post_id.Не считайте пост опубликованным, пока X не вернет идентификатор.
Скрипты
Скрипт | Назначение |
| Запускает MCP-сервер через |
| Запускает MCP-сервер через локальный HTTP. |
| Запускает локальный помощник авторизации X OAuth. |
| Компилирует TypeScript в |
| Запускает скомпилированный сервер через |
| Запускает скомпилированный сервер через HTTP. |
| Запускает TypeScript без создания файлов. |
| Запускает набор тестов Vitest. |
Документация
docs/project-architecture.md: архитектура проекта.
docs/configuration.md: переменные окружения и настройка нескольких учетных записей.
docs/local-server-lifecycle.md: запуск, остановка и автоматизация локального MCP-сервера.
docs/tools.md: MCP-инструменты и контракты использования.
docs/x-oauth.md: повторная авторизация X OAuth.
docs/development.md: рекомендации по разработке, тестированию и внесению изменений.
docs/chatgpt-mcp-setup.md: пошаговая настройка MCP для ChatGPT.
Операционная безопасность
Храните учетные данные вне Git.
Сохраняйте
read-onlyв качестве режима по умолчанию.Включайте
read-writeтолько для контролируемых рабочих процессов.Проверяйте активную учетную запись перед публикацией.
Не записывайте в журнал токены доступа или токены обновления.
Не вставляйте токены в чаты, issues, документацию или пул-реквесты.
Не используйте автоматический запуск в режиме
read-writeна компьютерах общего пользования.
Лицензия
Открытая лицензия еще не выбрана.
Available Tools
8 toolsx_create_postB
Publish a new X post. Requires X_MCP_MODE=read-write and tweet.write scope.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=false and destructiveHint=false, so the write/non-destructive profile is covered. The description adds genuine behavioral context by naming the required server mode and OAuth scope, but says nothing about idempotency, rate limits, or what the call returns.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, zero filler, with the action front-loaded and the prerequisite immediately after. Every clause carries information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Prerequisites are covered, but with no output schema and an undocumented parameter, the definition leaves the agent guessing about the payload shape and the response. Adequate for a simple publish action but with clear gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% for the single required 'text' parameter, and the description never mentions it. No content format, mention/link handling, or length constraints are conveyed beyond the bare minLength/maxLength in the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb+resource ('Publish a new X post'), which is unambiguous and distinguishable from the read-oriented siblings (x_get_post, x_search_posts). It does not explicitly contrast with x_reply_post, the other write sibling, so it stops short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It states prerequisites (X_MCP_MODE=read-write, tweet.write scope), which implies context of use, but gives no explicit when-to-use versus x_reply_post or when-not guidance. Useful but inferential rather than directive.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
x_get_active_accountARead-only
Get the local X account profile selected for this MCP server installation. Does not expose tokens.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
readOnlyHint=true already establishes the safety profile, so the bar is lower, and the description adds a genuine security-relevant disclosure: 'Does not expose tokens.' That is useful context beyond the annotation. It does not describe return contents, but the token caveat is the meaningful addition.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, no filler, with the resource identity front-loaded and the security caveat in the second clause. Nothing extraneous.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a zero-parameter read-only tool with annotations covering safety, this is nearly complete. The only missing piece is a hint about what profile fields come back, which matters slightly since no output schema exists.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Zero parameters, so the baseline is 4 by rule. There is no parameter surface for the description to clarify or obscure.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Get the local X account profile') and scopes it to the account selected for this installation. It is largely distinguishable from siblings, though the boundary with x_get_me is not spelled out in the description itself.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this versus x_get_me or x_get_user, which is the most likely confusion given the near-identical resource. The agent has to infer the distinction from the name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
x_get_meBRead-only
Get the authenticated X user.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The readOnlyHint=true annotation already establishes this is a safe read, so the description's main added value is the 'authenticated' scoping, which implies auth is required and no user id is passed. It says nothing about what identity fields come back or what happens if the token is invalid.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler. Every word carries information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a parameterless read with annotations covering the safety profile, this is nearly sufficient, but the ambiguity against x_get_user and x_get_active_account is unresolved and no return-shape hint is given (there is no output schema).
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Zero parameters, so there is nothing for the description to clarify; baseline 4 applies. The description correctly implies the user is derived from the authenticated session rather than passed in.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('get the authenticated X user'), which is meaningful against siblings like x_get_user and x_get_active_account. However, it does not explicitly distinguish itself from those overlapping siblings, so the reader must infer the difference.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this versus x_get_user or x_get_active_account, both of which plausibly return user data. The agent is left to infer the distinction from the word 'authenticated' alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
x_get_postBRead-only
Get a single X post by ID.
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The readOnlyHint annotation already declares this as a safe read, so the description's remaining burden is lower. It adds little beyond the annotation: no mention of auth requirements, deleted/protected post behavior, or rate limits. A 3 reflects that annotations carry the safety profile while the description adds almost nothing.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, front-loaded sentence with zero waste. Appropriate for a simple lookup tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a basic read-by-ID tool with annotations covering safety, this is minimally adequate. Missing are edge-case behavior, format of the ID, and sibling differentiation, leaving some gaps for an agent choosing among post-related tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There is only one parameter, so the baseline is 4. Schema coverage is 0% and the description only restates 'by ID', but with a single obvious parameter the description is adequate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: retrieving a single X post by ID. It is clear on its own, but it offers no distinction from siblings like x_search_posts or x_get_user_posts, which also return post data.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus x_search_posts or x_get_user_posts. The word 'single' implies an exact-ID lookup, but this is not explicit and no alternatives or exclusions are named.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
x_get_userCRead-only
Get an X user by username.
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | Username without @ |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
readOnlyHint=true already tells the agent this is a safe read, and the description adds nothing further: no failure behavior for unknown usernames, no note on what user data is returned, no authentication context. It restates the operation rather than disclosing behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler. It is appropriately sized for a one-parameter lookup, though it is arguably too sparse to be maximally useful.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-param read with annotations covering safety and full schema coverage, the essentials are present. Still missing is any signal about return content or how to distinguish this from x_get_me and x_get_active_account.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, including the useful 'Username without @' constraint, so the schema carries full parameter meaning. The description adds nothing beyond that, which is the expected baseline when the schema does the work.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource ('Get an X user by username'), so its function is unambiguous. However, it does not distinguish itself from close siblings like x_get_me or x_get_active_account, leaving the agent to infer which retrieval path applies.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance and no mention of alternatives. With siblings that also return users (x_get_me, x_get_active_account), the definition provides no basis for choosing between them.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
x_get_user_postsCRead-only
Get recent posts authored by an X user ID.
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | ||
| maxResults | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds one useful behavioral trait, that only 'recent' posts are returned (not full history), but it never defines that window or says anything about pagination or ordering.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no wasted words. It is efficient, though arguably under-specified rather than optimally concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a low-complexity two-parameter tool with no output schema, an agent still lacks what 'recent' means, how many posts come back, whether the list is paginated, and what fields are returned. The definition is too thin to call correctly with confidence.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate, yet it only restates that userId is an X user ID. maxResults is entirely unaddressed in the description; the schema supplies default/min/max but no meaning for the value or how results are paged.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Names a specific verb and resource ('Get recent posts authored by an X user ID'), so the agent knows exactly what is retrieved. It does not distinguish itself from siblings like x_search_posts or x_get_post, but the by-user scoping is still clear.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use guidance, no mention of alternatives (e.g. x_search_posts for query-based retrieval, x_get_post for a single post), and no prerequisites such as requiring a user ID from x_get_user or x_get_me.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
x_reply_postA
Reply to an X post. Requires X_MCP_MODE=read-write and tweet.write scope.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| postId | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already establish this is a non-read-only, non-destructive write. The description adds the auth/config requirement (mode and scope), which is genuine value beyond the annotations. It omits rate limits, whether the reply threads to the parent, and error/permission failure behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences with zero filler; the action is front-loaded and the prerequisite follows. Sized appropriately for a simple two-parameter tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema exists, so the description should say what comes back, and it doesn't. Combined with undocumented parameters and no sibling differentiation, the definition is adequate but leaves real gaps for a write tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Two required parameters with 0% schema description coverage, so the schema alone explains nothing about 'text' (reply body) or 'postId' (target post). The description mentions replying to 'a post' but does not map either parameter or note the 25000-char limit implied by the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Names a specific verb+resource ('Reply to an X post'), which is unambiguous on its own. It does not differentiate from the closely related sibling x_create_post (a reply is a kind of post creation), leaving the agent to infer the boundary.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives a real precondition (X_MCP_MODE=read-write and tweet.write scope), which is useful operational guidance. It says nothing about when to prefer this over x_create_post or x_get_post, and no exclusions are stated, so usage is only partially covered.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
x_search_postsCRead-only
Search recent X posts using the official X query syntax.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| maxResults | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already establish readOnlyHint=true, so the safety profile is covered. The description adds one genuine behavioral fact — results are limited to 'recent' posts, not the full archive — but says nothing about rate limits, authentication requirements, result volume, or how results are ordered, leaving meaningful behavioral gaps for a search tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no wasted words. It is efficiently sized, though the extreme brevity is part of why other dimensions are thin.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, 0% parameter description coverage, and only a readOnlyHint annotation, the description would need to carry most of the load. Instead it omits the query syntax details, the meaning of maxResults, and any sense of the returned result shape, so an agent cannot call this confidently without outside knowledge.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so both parameters are undocumented in the schema. The description nods at 'official X query syntax' for the query parameter but gives no operators, examples, or format rules, and it says nothing at all about maxResults (its default of 10, its 10-100 range, or how it interacts with the query).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb ('Search') and resource ('recent X posts'), which is clear on its face. It does not, however, distinguish itself from siblings such as x_get_user_posts or x_get_post, which also return posts, so the agent must infer the distinction from the verb alone.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit when-to-use guidance, no conditions or exclusions, and no reference to the sibling tools that also retrieve posts. The word 'recent' implies a temporal scope but the description never tells the agent when search is preferable to x_get_user_posts or x_get_post.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
8 tool updates
v0.1.0- First observed
x_create_post - First observed
x_get_active_account - First observed
x_get_me - First observed
x_get_post - First observed
x_get_user - First observed
x_get_user_posts - First observed
x_reply_post - First observed
x_search_posts
TDQS
Scored across 8 tools
Tools have largely distinct purposes: get_active_account (local config) vs get_me (authenticated API user) vs get_user (by username) are differentiated by descriptions, and get_post vs get_user_posts vs search_posts are clearly separated. Minor potential confusion among the three user-retrieval tools, but descriptions resolve it adequately.
All tools follow a consistent snake_case pattern with an x_ prefix and verb_noun structure (e.g., x_get_user, x_create_post, x_reply_post). No deviations in style or convention.
Eight tools is well-scoped for a focused X API server covering basic read and write operations. Each tool earns its place, with no redundant or excessive entries.
The surface covers reading posts/users and creating posts/replies, but notable gaps exist: no delete or edit post, no like/retweet, and no follow/unfollow. These missing operations limit common agent workflows.
Maintenance
Related MCP Connectors
Twitter/X read-only MCP server — 12 tools: search, users, tweets, followers, timelines, trends.
Official twitterapi.io hosted MCP: Twitter/X tweets, users, followers, trends. OAuth or API key.
Official MCP server for twitterapis.com. Read and write Twitter/X: search, users, tweets, DMs.
X (Twitter) data for AI agents: tweets, profiles, followers, search, trends + social listening.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that provides AI agents with full access to the X (Twitter) API for posting, searching, and managing engagement through natural language. It supports comprehensive tools for tweet management, media uploads, and account analytics across multiple MCP-compatible clients.1555-

X API FastMCP Serverofficial
FlicenseNot gradedqualityFmaintenanceA local MCP server that exposes the X API (formerly Twitter API) as tools, enabling operations like posting, searching, user management, and more via natural language commands.863-- AlicenseAqualityCmaintenanceMCP server for Twitter/X enabling AI agents to search, post, reply, and engage with tweets.147 npm2MIT
- AlicenseBqualityDmaintenanceMCP server for interacting with the X platform (Twitter) via MCP clients like Claude, Cursor AI, and Windsurf AI.201 npm6MIT