X API FastMCP Server
Officialby xdevplatform
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | MCP server host | 127.0.0.1 |
| MCP_PORT | No | MCP server port | 8000 |
| CLIENT_ID | No | OAuth2 client ID | |
| XAI_MODEL | No | xAI model name | grok-4-1-fast |
| XAI_API_KEY | No | xAI API key for Grok test client | |
| X_API_DEBUG | No | Enable debug mode (1 or 0) | 1 |
| CLIENT_SECRET | No | OAuth2 client secret | |
| X_API_TIMEOUT | No | API timeout in seconds | 30 |
| MCP_SERVER_URL | No | MCP server URL for Grok client | http://127.0.0.1:8000/mcp |
| X_API_BASE_URL | No | Base URL for X API | https://api.x.com |
| X_BEARER_TOKEN | Yes | Bearer token (required for this setup) | |
| X_API_TOOL_ALLOWLIST | No | Comma-separated list of tools to whitelist | |
| X_OAUTH_ACCESS_TOKEN | No | OAuth2 access token | |
| X_OAUTH_CONSUMER_KEY | Yes | OAuth consumer key from X Developer Platform | |
| X_OAUTH_PRINT_TOKENS | No | Set to 1 to print OAuth tokens | |
| X_OAUTH_CALLBACK_HOST | No | OAuth callback host | 127.0.0.1 |
| X_OAUTH_CALLBACK_PATH | No | OAuth callback path | /oauth/callback |
| X_OAUTH_CALLBACK_PORT | No | OAuth callback port | 8976 |
| X_OAUTH_CONSUMER_SECRET | Yes | OAuth consumer secret from X Developer Platform | |
| X_OAUTH_CALLBACK_TIMEOUT | No | OAuth callback timeout in seconds | 300 |
| X_OAUTH_PRINT_AUTH_HEADER | No | Set to 1 to print auth header | |
| X_OAUTH_ACCESS_TOKEN_SECRET | No | OAuth2 access token secret |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
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/xdevplatform/xmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server