Webypost MCP Server
MCP server that lets AI assistants like Grok automate webypost.com by checking account status and publishing posts with configurable privacy settings.
README
Webypost MCP Server (HTTP / SSE)
Production-ready Model Context Protocol server that lets Grok (or any MCP client) automate webypost.com:
| Tool | Purpose |
|---|---|
check_webypost_status |
Reachability + credential validation |
publish_webypost_post |
Login + publish a text post, return story URL |
Transport: MCP over SSE (HTTP) — required for Grok public URL integration.
Requirements
- Node.js 18+ (20 LTS recommended)
- A Webypost account (email + password)
- For local Webypost site tests: XAMPP Apache + MySQL running with
http://localhost/webypost
Install
cd webypost-mcp-server
npm install
cp .env.example .env
# edit .env — set WEBYPOST_EMAIL and WEBYPOST_PASSWORD
Dependencies (package.json)
| Package | Role |
|---|---|
@modelcontextprotocol/sdk |
Official MCP server + SSE transport |
express |
HTTP server (/sse, /messages, /health) |
zod |
Tool argument schemas |
dotenv |
.env loading |
axios + tough-cookie + axios-cookiejar-support |
Session cookies, login, form POST |
typescript / tsx |
Build & dev runner |
.env configuration
PORT=8787
HOST=0.0.0.0
# Production (default)
WEBYPOST_BASE_URL=https://webypost.com
# Or local XAMPP
# WEBYPOST_BASE_URL=http://localhost/webypost
WEBYPOST_EMAIL=you@example.com
WEBYPOST_PASSWORD=your-password
# Optional cookie-only auth (advanced)
# WEBYPOST_SESSION_COOKIE=PHPSESSID=...; wyp_remember=...
WEBYPOST_DEFAULT_PRIVACY=Public
WEBYPOST_TIMEOUT_MS=30000
Run (localhost)
Development (hot TypeScript)
cd /home/sravanimahesh/webypost-mcp-server
npm run dev
Production build
npm run build
npm start
Smoke-test tools without Grok
# Status only
npm run test:tools
# Status + publish a Private test post
SMOKE_PUBLISH=1 npm run test:tools
Local URLs (when running)
| Endpoint | URL |
|---|---|
| Info page | http://127.0.0.1:8787/ |
| Health JSON | http://127.0.0.1:8787/health |
| MCP Streamable HTTP (preferred for Grok) | http://127.0.0.1:8787/mcp |
| MCP legacy SSE | http://127.0.0.1:8787/sse |
| MCP legacy messages | POST http://127.0.0.1:8787/messages?sessionId=… |
Important: Grok cannot connect to
127.0.0.1from the cloud. You must expose the port with ngrok (or deploy to Render) and paste the public HTTPS URL.
How posting works
GET {WEBYPOST_BASE_URL}/— establishPHPSESSIDPOST {base}/logcode.phpJSON{ email, password, remember_me: "1" }POST {base}/poscode.phpform body:submit=1,wp_ajax=1name= content (body)titles= titleprivacy= Public|Private|Friends
- Parse JSON
{ success, pid, slug, message }→ public URL{slug}/story/{pid}
Errors are returned as structured JSON text so Grok can explain failures (wrong password, site down, validation, session expired).
Expose to Grok with ngrok
Grok runs in the cloud and cannot reach http://127.0.0.1:8787.
You need a public HTTPS tunnel.
# terminal 1 — MCP server
cd /home/sravanimahesh/webypost-mcp-server
npm run dev
# terminal 2 — public tunnel
ngrok http 8787
ngrok prints something like:
Forwarding https://abc123.ngrok-free.app -> http://localhost:8787
In grok.com → MCP / connectors, paste exactly:
https://abc123.ngrok-free.app/mcp
| Client type | Path |
|---|---|
| Grok / modern MCP | /mcp (Streamable HTTP) ← use this |
| Older SSE-only clients | /sse |
Common connection failures
- Using
http://127.0.0.1:8787/...in Grok → always fails (not public). - Using ngrok root URL without
/mcp→ may fail. - Server not running (
npm run dev). - Free ngrok interstitial page — open the ngrok URL once in a browser and click through, or use an ngrok auth token.
Deploy on Render (permanent Grok URL)
This is the recommended production setup. Free Render URLs stay the same after restarts (unlike free ngrok, which often changes subdomain).
Option A — Blueprint (easiest)
- Push this repo to GitHub.
- On dashboard.render.com → New → Blueprint.
- Connect the GitHub repo (root has
render.yaml). - When prompted, set secrets:
WEBYPOST_EMAIL— your Webypost login emailWEBYPOST_PASSWORD— your Webypost password
- Deploy. Copy the service URL from the dashboard.
Option B — Manual Web Service
-
Push this folder to a GitHub repo.
-
Create a Web Service on render.com:
- Runtime: Node
- Build command:
npm install && npm run build - Start command:
npm start - Health check path:
/health
-
Set environment variables (multi-account recommended):
Key Example WEBYPOST_BASE_URLhttps://webypost.comWEBYPOST_ACCOUNTS{"main":{"email":"a@x.com","password":"…"},"brand":{"email":"b@x.com","password":"…"}}WEBYPOST_DEFAULT_ACCOUNTmainWEBYPOST_DEFAULT_PRIVACYPublicNODE_ENVproductionHOST0.0.0.0PORTset by Render automatically Legacy single-account (only if you skip
WEBYPOST_ACCOUNTS):WEBYPOST_EMAIL+WEBYPOST_PASSWORD
Grok URL (after deploy)
https://YOUR-SERVICE.onrender.com/mcp
Example: if the service is webypost-mcp-server, use:
https://webypost-mcp-server.onrender.com/mcp
Legacy clients can use /sse instead of /mcp.
Free-plan notes
- Free instances spin down after idle time; the first request may take ~30–60s (cold start).
- The hostname stays permanent while the service exists.
- Keep credentials only in Render Environment secrets — never commit
.env.
Tools (for Grok)
list_webypost_accounts
No arguments. Lists configured account ids (emails masked) and the default.
check_webypost_status
| Arg | Type | Required | Description |
|---|---|---|---|
account |
string | no | Account id from WEBYPOST_ACCOUNTS (default: WEBYPOST_DEFAULT_ACCOUNT) |
Returns:
{
"ok": true,
"reachable": true,
"authenticated": true,
"baseUrl": "https://webypost.com",
"message": "Authenticated as you@example.com"
}
publish_webypost_post
| Arg | Type | Required | Description |
|---|---|---|---|
title |
string | yes (may be "") |
Post title |
content |
string | yes | Post body |
privacy |
enum | no | Public / Private / Friends |
account |
string | no | Which Webypost login to use (main, brand, …) |
Success example:
{
"ok": true,
"message": "Post published",
"url": "https://webypost.com/my-title/story/12345",
"pid": 12345,
"slug": "my-title"
}
Security notes
- Never commit
.env(gitignored). - Prefer a dedicated Webypost account for automation.
- On Render, use secret env vars only.
- This server holds session cookies in memory for the process lifetime.
Project layout
webypost-mcp-server/
├── package.json
├── tsconfig.json
├── .env.example
├── render.yaml
├── README.md
└── src/
├── index.ts # Express + SSE transport
├── server.ts # MCP tools
├── webypost-client.ts # Login + publish automation
├── config.ts # dotenv config
└── smoke-test.ts # CLI smoke test
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.