Webypost MCP Server

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.

Category
访问服务器

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.1 from the cloud. You must expose the port with ngrok (or deploy to Render) and paste the public HTTPS URL.


How posting works

  1. GET {WEBYPOST_BASE_URL}/ — establish PHPSESSID
  2. POST {base}/logcode.php JSON { email, password, remember_me: "1" }
  3. POST {base}/poscode.php form body:
    • submit=1, wp_ajax=1
    • name = content (body)
    • titles = title
    • privacy = Public|Private|Friends
  4. 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

  1. Using http://127.0.0.1:8787/... in Grok → always fails (not public).
  2. Using ngrok root URL without /mcp → may fail.
  3. Server not running (npm run dev).
  4. 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)

  1. Push this repo to GitHub.
  2. On dashboard.render.com → New → Blueprint.
  3. Connect the GitHub repo (root has render.yaml).
  4. When prompted, set secrets:
    • WEBYPOST_EMAIL — your Webypost login email
    • WEBYPOST_PASSWORD — your Webypost password
  5. Deploy. Copy the service URL from the dashboard.

Option B — Manual Web Service

  1. Push this folder to a GitHub repo.

  2. Create a Web Service on render.com:

    • Runtime: Node
    • Build command: npm install && npm run build
    • Start command: npm start
    • Health check path: /health
  3. Set environment variables (multi-account recommended):

    Key Example
    WEBYPOST_BASE_URL https://webypost.com
    WEBYPOST_ACCOUNTS {"main":{"email":"a@x.com","password":"…"},"brand":{"email":"b@x.com","password":"…"}}
    WEBYPOST_DEFAULT_ACCOUNT main
    WEBYPOST_DEFAULT_PRIVACY Public
    NODE_ENV production
    HOST 0.0.0.0
    PORT set 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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选