ChirpieDocs
MCP

MCP Server

Let Claude and other AI agents post to X through the Chirpie MCP server.

The Chirpie MCP (Model Context Protocol) server exposes Chirpie tools to AI agents like Claude.

Setup

1. Authenticate

Install the CLI and log in (opens browser — if you're already signed in, it's instant):

npm install -g chirpie
chirpie login

The MCP server reads saved credentials from ~/.chirpie/config.json automatically. No API key needed in your MCP config.

Alternatively, set CHIRPIE_API_KEY as an environment variable (useful for CI/CD or Docker).

2. Configure Your AI Client

claude mcp add chirpie -- npx @chirpie/mcp

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "chirpie": {
      "type": "stdio",
      "command": "npx",
      "args": ["@chirpie/mcp"]
    }
  }
}

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "chirpie": {
      "command": "npx",
      "args": ["@chirpie/mcp"]
    }
  }
}

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "chirpie": {
      "command": "npx",
      "args": ["@chirpie/mcp"]
    }
  }
}

Available Tools

ToolDescription
chirpie_postCreate a single post
chirpie_threadCreate a thread (2-25 posts)
chirpie_list_postsList posts with optional filters
chirpie_get_postGet a single post by ID
chirpie_delete_postDelete a post
chirpie_list_accountsList connected X accounts
chirpie_analyticsGet engagement metrics for a post

Tool Details

chirpie_post

ParameterTypeRequiredDescription
account_idstringYesX account UUID
textstringYesPost text (max 280 chars)
media_urlsstring[]NoUp to 4 public image/video URLs (JPEG, PNG, WebP, GIF up to 5MB; MP4/MOV up to 512MB)
schedule_atstringNoISO 8601 datetime

chirpie_thread

ParameterTypeRequiredDescription
account_idstringYesX account UUID
postsarrayYesArray of { text, media_urls? } objects (2-25)
schedule_atstringNoISO 8601 datetime

chirpie_list_posts

ParameterTypeRequiredDescription
statusstringNoFilter by status
account_idstringNoFilter by account
limitnumberNoResults to return

chirpie_list_accounts

No parameters required. Returns all connected X accounts.

chirpie_analytics

ParameterTypeRequiredDescription
post_idstringYesPost UUID

Example Prompts

Once configured, you can ask Claude:

  • "Post a tweet saying 'Just shipped a new feature!'"
  • "Create a thread about the benefits of TypeScript"
  • "Show me my recent posts"
  • "What are the analytics for my last post?"
  • "Schedule a post for tomorrow at 9am saying 'Good morning!'"

Authentication Flow

The MCP server resolves your API key in this order:

  1. CHIRPIE_API_KEY environment variable (if set — useful for CI/CD)
  2. ~/.chirpie/config.json (written by chirpie login)

Both the CLI and MCP server share the same config file. One chirpie login authenticates both — no API key in your MCP config needed.

On this page