Skip to content
VS Code

twitterapi for VS Code

io.github.pedrot95dev/twitterapi

Read/write X (Twitter) via twitterapi.io: mentions, thread context, create and delete tweets.

client:VS Code transport:stdio runtime:npm

Install twitterapi in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "twitterapi-io-key",
      "description": "TWITTERAPI_IO_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "twitterapi-io-auth-token",
      "description": "TWITTERAPI_IO_AUTH_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "twitterapi-io-ct0",
      "description": "TWITTERAPI_IO_CT0",
      "password": true
    },
    {
      "type": "promptString",
      "id": "twitterapi-io-proxy",
      "description": "TWITTERAPI_IO_PROXY",
      "password": true
    }
  ],
  "servers": {
    "twitterapi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pedrot95dev/twitterapi.mcp"
      ],
      "env": {
        "TWITTERAPI_IO_KEY": "${input:twitterapi-io-key}",
        "TWITTERAPI_IO_AUTH_TOKEN": "${input:twitterapi-io-auth-token}",
        "TWITTERAPI_IO_CT0": "${input:twitterapi-io-ct0}",
        "TWITTERAPI_IO_PROXY": "${input:twitterapi-io-proxy}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

twitterapi in other clients