Mofei Life MCP Server
Allows ChatGPT (OpenAI) to interact with Mofei's blog API, enabling browsing posts, fetching articles, comments, and recommendations.
Click on "Install 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., "@Mofei Life MCP ServerShow me the latest posts from Mofei's blog in English."
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.
ChatGPT App MCP Backend for Mofei's Blog
This repository hosts the Cloudflare Workers MCP server that powers the blog app from the article “How to Build a ChatGPT App From Scratch: MCP Integration, Custom Widgets, and Real API Examples”. It exposes Mofei's blog APIs as MCP tools so ChatGPT (and any MCP client) can browse posts, fetch details, and surface recommendations.
What’s inside
Cloudflare Worker + Durable Object MCP server (
src/index.ts) with SSE endpoints at/sseand/mcp.Four blog-focused MCP tools:
list-blog-posts,get-blog-article,get-comment-list, andget-recommend-blog.Wrangler configuration (
wrangler.jsonc) ready for local dev and production deploy.
Related MCP server: cnblogs-mcp
Quick start (local)
Install dependencies:
npm installStart the dev server:
npm run devThe MCP endpoints are available at
http://localhost:8787/sse(SSE) andhttp://localhost:8787/mcp.
If you need to expose local dev to ChatGPT, run ngrok http 8787 (or your tunneling tool) and append /sse to the public URL.
Deploy to Cloudflare Workers
Configure your Cloudflare account with Wrangler (
npm create cloudflare@latestif you need an account setup).Deploy:
npm run deployYour public MCP endpoint will be
https://<worker-name>.<your-account>.workers.dev/sse.
Connect from ChatGPT (Apps Developer Mode)
In ChatGPT: Settings → Apps & Connectors → Advanced settings → Enable “Developer mode”.
Create a connection and set “MCP Server URL” to your endpoint:
Cloudflare:
https://<worker-name>.<your-account>.workers.dev/sseLocal via ngrok:
https://<random>.ngrok.io/sseKeep the trailing
/sse.
Test the connection to confirm tools and resources are detected, then save.
Try a prompt such as: “Show me the latest posts from Mofei’s blog in English.”
Available tools
list-blog-posts— Paginated blog list. Params:page(number),lang(en/zh).get-blog-article— Fetch a specific article byidandlang.get-comment-list— Retrieve comments withpageandpageSize.get-recommend-blog— Related articles for a givenidandlang.
Responses return the underlying JSON from https://api.mofei.life. For UI widgets, pair this server with the single-file widget bundle described in the blog post (structured content for the model + _meta for the widget data).
Useful scripts
npm run dev— Local dev server on port 8787.npm run deploy— Deploy to Cloudflare Workers.npm run format/npm run lint:fix— Biome formatting and linting.
More resources
Full article: https://www.mofei.life/en/blog/article/chatgpt-app
ChatGPT Apps SDK docs: https://developers.openai.com/apps-sdk
MCP spec: https://modelcontextprotocol.io/
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zmofei/mofei-life-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server