---
title: "X Docs MCP server: X developer documentation for coding agents"
description: "Install the X Docs MCP server in an Aldena project, with no account, and agents search X's developer docs and browse its pages and OpenAPI specs like files."
url: "https://aldena.ai/mcp-servers/x-docs"
---

# Let agents read X Docs and the OpenAPI specs before writing X API code

X Docs MCP server. Install the X Docs MCP server in an Aldena project, with no account, and agents search X's developer docs and browse its pages and OpenAPI specs like files.

- **Sign-in**: None
- **Installs as**: `x-docs`
- **Transport**: Streamable HTTP
- **Last verified**: 2026-11-28

X publishes its developer documentation through a hosted MCP server, and it installs with no account or key. It has three tools: `search_x` searches docs, guides, code examples and API references, `query_docs_filesystem_x` lets the agent browse every docs page and OpenAPI spec as a read-only virtual file tree, and `submit_feedback` reports a page that is wrong or out of date.

In an Aldena project the server is reference material for agents writing code against X. An engineering agent adding a feature that reads posts searches the docs for the endpoint, opens its OpenAPI spec to get the exact fields, writes the client and types in its conversation's sandbox, and opens a pull request through the [GitHub connector](https://aldena.ai/integrations/github). When a request fails, the agent checks the documented rate limits and error codes before changing anything. Teams building integrations often pair it with the [Context7 MCP server](https://aldena.ai/mcp-servers/context7) for the libraries around the API.

The two lookup tools start on allow and `submit_feedback` on ask in the project's [permissions](https://aldena.ai/features/human-in-the-loop).

## With X Docs, your agents can

- Search X's developer documentation, guides and code examples
- Browse X's docs and OpenAPI specs as a read-only file tree
- Report a wrong or outdated docs page to X's docs team

## Try asking

- “Search the X docs for how pagination works on the recent search endpoint and update our fetcher to follow next_token.”
- “Find the OpenAPI spec for the X API users lookup endpoint in the X docs and generate TypeScript types for its response.”
- “Look up the X API rate limits for posting in the X docs and tell me how our queue should space out requests.”

## X Docs MCP tools

| Tool | What it does | Access |
| --- | --- | --- |
| `search_x` | Searches X's knowledge base for docs, code examples, API references and guides | Read |
| `query_docs_filesystem_x` | Runs read-only, shell-like queries over a virtual tree of X's docs and OpenAPI specs | Read |
| `submit_feedback` | Reports an incorrect, outdated or confusing docs page to X's docs team | Write |

## Server

- **Server URL**: `https://docs.x.com/mcp`
- **Website**: [developer.x.com](https://developer.x.com)
- **MCP docs**: [X Docs MCP docs](https://docs.x.com/overview)

## How to connect X Docs

1. **Open Marketplace.** In a project, open Settings → Connectors → MCP servers and press Marketplace.
2. **Install X Docs.** Search for X Docs and press Install. Aldena adds it as `x-docs`.
3. **Nothing to sign in to.** Aldena installs X Docs with no sign-in or key, so its tool calls carry no credentials.
4. **Let agents use it.** Agents find its tools with `mcp_search` and call them with `mcp_call`. Each tool gets its own row in the project's permissions.

## Related MCP servers

- [Cloudflare Docs MCP server](https://aldena.ai/mcp-servers/cloudflare-docs): Search the Cloudflare developer documentation.
- [Context7 MCP server](https://aldena.ai/mcp-servers/context7): Pull version-specific docs and code examples for a library.
- [Twilio Docs MCP server](https://aldena.ai/mcp-servers/twilio-docs): Search the Twilio API documentation.
- [Zapier MCP server](https://aldena.ai/mcp-servers/zapier): Trigger actions across thousands of connected apps.
- [All MCP servers](https://aldena.ai/mcp-servers)

## FAQ

### What is query_docs_filesystem_x?

A read-only, shell-like view of X's documentation. The docs pages and OpenAPI specs sit in a virtual, in-memory file tree, and the agent lists and reads them with familiar commands. Nothing runs on a real machine, and the tool can't touch your sandbox or any other files.

### Which X Docs tools need approval in Aldena?

Only submit_feedback. X marks search_x and query_docs_filesystem_x read-only, so they start on allow and an agent looks things up without waiting. submit_feedback sends a report to X's docs team, so it starts on ask in the project's permissions.

### Why use X Docs instead of letting the agent guess?

The X API has changed a lot over the years, and a model's memory mixes old and new versions. Reading the current docs and OpenAPI specs gives the agent the endpoint, fields and limits as they are today, so the code works against the API X actually serves.
