# mcp

Connect an AI agent to OpenTweet to publish on X, Bluesky, and LinkedIn. Useful for drafting posts, scheduling them, and checking performance from a chat.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: opentweetio
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/opentweetio/mcp-server
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/opentweetio-mcp

## What it does

The server gives an agent tools for posts and threads, scheduled publishing, an evergreen queue, and analytics. It also supports CSV imports and cross-posting. A LinkedIn thread is published as one post.

Local setup uses `npx` and an OpenTweet API key with the `ot_` prefix. Connect an X account in the OpenTweet dashboard, then add the server to Claude Code. The key is required for the local server to access the account. Check `list_platforms` before publishing without an explicit platform list: the account’s cross-post setting can send that post to every connected network.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `OPENTWEET_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp -e OPENTWEET_API_KEY=<OPENTWEET_API_KEY> -- npx -y @opentweet/mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add opentweetio-mcp --env OPENTWEET_API_KEY=<OPENTWEET_API_KEY> -- npx -y @opentweet/mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "opentweetio-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@opentweet/mcp-server"
            ],
            "env": {
                "OPENTWEET_API_KEY": "<OPENTWEET_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "opentweetio-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@opentweet/mcp-server"
            ],
            "env": {
                "OPENTWEET_API_KEY": "<OPENTWEET_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e OPENTWEET_API_KEY=<OPENTWEET_API_KEY> opentweetio-mcp npx -y @opentweet/mcp-server
```
Replace <…> with your own values

## When to use it
- turn an article into a thread and schedule it
- publish one post to X, Bluesky, and LinkedIn
- schedule posts imported from a CSV file
- find posts with the strongest engagement
- add a successful post to the evergreen queue

## Example prompts
- Turn this article into a thread and schedule it for tomorrow.
- Write a TypeScript post and publish it to X and LinkedIn.
- Show my top posts and add the best one to the evergreen queue.

## Similar
- [Publora](https://affpapa.org/en/nevibecode/mcp/publora.md) — MCP server · ★ 6
- [xpost](https://affpapa.org/en/nevibecode/mcp/xpost.md) — MCP server
- [crosspost](https://affpapa.org/en/nevibecode/skills/crosspost.md) — skill · 4400 installs
- [post-writer-sms](https://affpapa.org/en/nevibecode/skills/post-writer-sms.md) — skill · 1900 installs
- [platform-strategy-sms](https://affpapa.org/en/nevibecode/skills/platform-strategy-sms.md) — skill · 1700 installs
- [ScrapeField](https://affpapa.org/en/nevibecode/mcp/scrapefield.md) — MCP server

## Other versions with the same name
- [mcp · kubeshark](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — ★ 12111
- [mcp · butterbase-ai](https://affpapa.org/en/nevibecode/mcp/butterbase-ai-mcp.md) — ★ 3031
- [mcp · medplum](https://affpapa.org/en/nevibecode/mcp/mcp.md) — ★ 2768
- [mcp · sceneview](https://affpapa.org/en/nevibecode/mcp/sceneview-mcp.md) — ★ 1350
- [mcp · buoy-gg](https://affpapa.org/en/nevibecode/mcp/buoy-gg-mcp.md) — ★ 691

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
