Twitter MCP Server

by serima

Not rated
GitHub

About

Accurately count Twitter/X post characters and optimize posts.

Details

Author
serima
Categories
Communication, Other, Marketing

Setup

Install Twitter MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/serima/twitter-mcp-server

Follow the installation instructions in the repository README, then restart your MCP client.

Accurately count Twitter/X post characters and optimize posts.

An MCP (Model Context Protocol) server for Claude to accurately count Twitter/X post characters and optimize posts.

- Accurate Character Counting: Calculate character count based on Twitter/X's official counting method
- Post Validation: Check character limits and other constraints
- Post Optimization: Suggestions for optimizing posts that are too long
- Entity Extraction: Extract and analyze URLs, mentions, and hashtags

# Clone the repository git clone <your-repo-url> cd twitter-mcp-server # Install dependencies npm install # Build npm run build

Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json):

{ "mcpServers": { "twitter-mcp-server": { "command": "node", "args": ["/path/to/twitter-mcp-server/dist/server.js"] } } }

The following tools will be available in Claude:

Please count the characters in this Twitter/X post accurately: "Hello! It's a beautiful day today ☀️ #goodweather https://example.com"
Please validate if this post is valid: "(long post text)"
Please optimize this post: "(post text to optimize)"
Please extract entities from this post: "@user Hello! #hello please check out https://example.com"
# Start in development mode npm run dev # Build npm run build # Start in production npm start

- Input:text(string) - Text to count
- Output: Detailed information including character count, remaining characters, validity

- Input:text(string) - Text to validate
- Output: Validity, issues, entity information

- Input:

- text(string) - Text to optimize
- maxLength(number, optional) - Maximum character count (default: 280)

- Input:text(string) - Text to extract entities from
- Output: Lists of URLs, mentions, and hashtags

- TypeScript: Type safety and better development experience
- @modelcontextprotocol/sdk: MCP server implementation
- twitter-text: Official Twitter character counting library
- Fork this repository
- Create a feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add some amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Create a Pull Request

If you have any issues or questions, please report them in GitHub Issues.

Publish, schedule, moderate your social inbox, and pull analytics across every major network directly from any AI assistant, via Eclincher.

Live TikTok creator intelligence MCP — 7 tools (analyze creators, score hooks, remix scripts, predict virality) that chain automatically via a recommended_chain that pre-fills the next 3 tool calls.

Instagram Graph API server for Business/Creator accounts — 24 tools for posting, comments, DMs, and insights.

Connect Claude or ChatGPT to your LinkedIn account to see who engaged on your posts, track performance and profile viewers, spot warm outreach signals, and publish content — built for B2B marketers and creators.

A hosted MCP server for planning, scheduling, media, analytics, and social publishing.

Turn short-video comments into ranked customer leads, keyword ideas, and outreach scripts.

An automation toolkit for Xiaohongshu, enabling content creation, publishing, and creator data analysis.

Publish, schedule, and manage social media across 11 platforms with media uploads and analytics tracking.

Generates professional LinkedIn post drafts from YouTube videos by summarizing their content.

Threads tools for AI agents — generate viral posts, download videos, and export profile data from Meta Threads.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.