# Xflux

> Xflux is an open-source MCP server. X/Twitter read API for agents: search, timelines, Smart Money. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/yxs1640-png/xflux
- **MCP Registry name:** io.github.yxs1640-png/xflux
- **Listing updated:** 2026-11-13

## About

X/Twitter read API for agents: search, timelines, Smart Money. Claude/Cursor MCP. Not for posting.

## Install

### Claude Code (Terminal)

```sh
claude mcp add xflux --env XFLUX_API_KEY='<XFLUX_API_KEY>' -- npx -y @xflux/xflux-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "xflux": {
      "command": "npx",
      "args": [
        "-y",
        "@xflux/xflux-mcp-server"
      ],
      "env": {
        "XFLUX_API_KEY": "<XFLUX_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "xflux": {
      "command": "npx",
      "args": [
        "-y",
        "@xflux/xflux-mcp-server"
      ],
      "env": {
        "XFLUX_API_KEY": "<XFLUX_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "xflux": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@xflux/xflux-mcp-server"
      ],
      "env": {
        "XFLUX_API_KEY": "<XFLUX_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "xflux": {
      "command": "npx",
      "args": [
        "-y",
        "@xflux/xflux-mcp-server"
      ],
      "env": {
        "XFLUX_API_KEY": "<XFLUX_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "xflux": {
      "command": "npx",
      "args": [
        "-y",
        "@xflux/xflux-mcp-server"
      ],
      "env": {
        "XFLUX_API_KEY": "<XFLUX_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Xflux free?

Yes. Xflux is open source, so you can use and self-host it for free.

### How do I add Xflux to Claude Code?

Run this command in your terminal: claude mcp add xflux --env XFLUX_API_KEY='<XFLUX_API_KEY>' -- npx -y @xflux/xflux-mcp-server

---
Source: https://ai-powered.com/mcp/xflux
