Build in Public MCP Server
Integrates with JetBrains IDEs to post tweets and generate suggestions based on coding activity.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Build in Public MCP Server Post to Twitter: Just shipped the new API integration!"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Build in Public MCP Server
v0.5.0
MCP (Model Context Protocol) server for Build in Public - share your dev progress on Twitter directly from Claude Code, Cursor, VS Code, JetBrains IDEs, and more.
What is this?
If Claude Code is already helping you build, why not use it to document the journey too?
This MCP server analyzes your coding sessions and generates tweet suggestions about what you accomplished.
Related MCP server: X (Twitter) MCP
Prerequisites: Twitter API Setup
You need a Twitter Developer account with API credentials. Here's how to get them:
Step 1: Create a Twitter Developer Account
Go to developer.x.com
Sign in with your Twitter account
Apply for a developer account (Free tier works)
Step 2: Create a Project and App
In the Developer Portal, click "Create Project"
Give it a name (e.g., "Build in Public")
Select use case: "Making a bot" or "Exploring the API"
Give your app a name (e.g., "build-in-public-mcp")
Step 3: Enable OAuth 1.0a with Write Permissions
In your app settings, go to "User authentication settings" → click "Set up"
Enable OAuth 1.0a
Set App permissions to "Read and write"
Set Type of App to "Web App, Automated App or Bot"
Set Callback URL to
https://example.com(required but not used)Set Website URL to
https://example.comClick "Save"
Step 4: Get Your API Keys
Go to "Keys and Tokens" tab
Under "Consumer Keys", click "Regenerate" (you need to regenerate AFTER enabling OAuth 1.0a)
Copy your API Key and API Key Secret
Important: You must regenerate the keys AFTER setting up OAuth 1.0a permissions, otherwise the keys won't have write access.
Installation
Claude Code (Recommended)
claude mcp add --transport stdio \
-e TWITTER_API_KEY=your_api_key \
-e TWITTER_API_SECRET=your_api_secret \
build-in-public npx @lucianfialho/build-in-public-mcpCursor
Add to your ~/.cursor/mcp.json:
{
"mcpServers": {
"build-in-public": {
"command": "npx",
"args": ["@lucianfialho/build-in-public-mcp"],
"env": {
"TWITTER_API_KEY": "your_api_key",
"TWITTER_API_SECRET": "your_api_secret"
}
}
}
}VS Code
Add to User Settings JSON (Ctrl+Shift+P → "Preferences: Open User Settings (JSON)"):
{
"mcp.servers": {
"build-in-public": {
"command": "npx",
"args": ["@lucianfialho/build-in-public-mcp"],
"transport": "stdio",
"env": {
"TWITTER_API_KEY": "your_api_key",
"TWITTER_API_SECRET": "your_api_secret"
}
}
}
}Claude Desktop
Add to your config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"build-in-public": {
"command": "npx",
"args": ["@lucianfialho/build-in-public-mcp"],
"env": {
"TWITTER_API_KEY": "your_api_key",
"TWITTER_API_SECRET": "your_api_secret"
}
}
}
}Global Install (Alternative)
npm install -g @lucianfialho/build-in-public-mcp
claude mcp add --transport stdio \
-e TWITTER_API_KEY=your_api_key \
-e TWITTER_API_SECRET=your_api_secret \
build-in-public build-in-public-mcpQuick Start
1. Authenticate with Twitter
After installing and configuring your API keys, authenticate via OAuth:
You: Setup build in public authentication
Claude: Authorization URL opened in your browser!
After authorizing, Twitter will show you a PIN code.
You: The PIN is 1234567
Claude: Authenticated as: @your_username
Tokens saved to: ~/.build-in-public/auth.jsonThe OAuth flow generates access tokens that are saved locally. You only need to do this once.
2. Post Tweets
Quick tweet:
"Post to Twitter: Just launched my new feature!"AI-powered retro (analyzes your whole coding session):
"Analyze my session and help me share what I accomplished on Twitter"Get suggestions:
"Give me tweet suggestions based on what I've been working on"Environment Variables
Variable | Required | Description |
| Yes | Twitter API Key (Consumer Key) |
| Yes | Twitter API Secret (Consumer Secret) |
| No | Skip OAuth - use access token directly |
| No | Skip OAuth - use access secret directly |
If you provide all 4 variables, the OAuth flow is skipped entirely.
Available Tools
Tool | Description |
| OAuth PIN-based authentication flow |
| Check auth status and configuration |
| Post a single tweet (max 280 chars) |
| Create a Twitter thread from multiple messages |
| Generate tweet suggestions from session context |
| Save coding session context for suggestions |
| Retrieve current session context |
Architecture
AI IDE/Editor -> STDIO -> MCP Server (local) -> Twitter API
|
~/.build-in-public/
- auth.json (OAuth tokens)
- context.json (Session context)
- history.json (Tweet history)100% local, zero external infrastructure.
Privacy & Security
OAuth tokens stored locally in
~/.build-in-public/auth.jsonwith0600permissionsNever sent to external servers (except Twitter API)
No analytics, no tracking, no telemetry
Open source
Contributing
Contributions, issues, and feedback welcome.
Repository: github.com/lucianfialho/build-in-public-mcp
License
MIT
Available Tools
8 toolsget_contextC
Retrieve current session context
Inputs: contextId.
mcp__bip__configureB
Configure user preferences for Build in Public (language and features)
Inputs: features, language.
save_contextB
Save session context for later analysis and suggestions
Inputs: context (required).
setup_authA
Setup Twitter authentication via OAuth 1.0a (PIN-based flow). Call without PIN to get authorization URL, then call again with PIN to complete.
Inputs: pin.
statusB
Check authentication status and storage location
Inputs: no named parameters.
suggestC
Generate intelligent tweet suggestions based on session context
Inputs: contextId.
threadA
Create a Twitter thread from multiple messages. Posts tweets in reply chain.
Inputs: messages (required), replyToTweetId.
tweetC
Post a tweet immediately for build in public. Requires authentication.
Inputs: message (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a distinct purpose: authentication, context management, tweeting, threads, suggestions, and configuration. There is no overlap or ambiguity.
Naming patterns are inconsistent: some use verb_noun (get_context, save_context, setup_auth), others are single verbs (suggest, thread, tweet) or nouns (status), and one has a non-standard prefix (mcp__bip__configure).
8 tools is well-scoped for a build-in-public Twitter client, covering authentication, context, posting single tweets, threads, and suggestions without being excessive.
Core posting workflow is covered (tweet, thread, auth, context), but lacks tools for deleting tweets, viewing history, or scheduling, which are minor gaps.
Maintenance
Related MCP Connectors
Publish and schedule tweets and threads on X (Twitter) from your AI assistant.
Analyze X (Twitter) posts, then draft and schedule from Claude or ChatGPT. OAuth; paid plans.
Turn what you just built into build in public posts for X, in your voice. Drafts, queue, metrics.
Stop guessing what works on X/Twitter. Analyze your history, draft in your voice, schedule posts.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables LLM agents to interact with Twitter (X) for searching tweets, posting content with images, analyzing engagement, and extracting topics using the Twitter API.-
- AlicenseNot gradedqualityDmaintenanceEnables interaction with X (Twitter) to post tweets, threads, and replies while retrieving tweet metrics and account information. It supports core management tasks like deleting tweets and verifying authentication through the Twitter API.MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents and coding assistants with Twitter data access including tweets, user profiles, followers, and search functionality.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with X (Twitter) API v2 for posting tweets, searching, liking, retweeting, and more through natural language.MIT