Authoring MCP
Enables drafting investment reports with inline citations from search sources, refining sections, and exporting drafts.
README
Authoring — MCP prototype
A minimal, working MCP server + widget for the sell-side authoring concept: search across (fake) internal-repo / market-data / web sources, draft a report with inline citations, refine sections with AI or by hand, and export the draft. Built to run against your personal ChatGPT account in Developer Mode.
Everything here is real, working code — but the "connectors" in sources.js
are hard-coded fake documents, not live SharePoint/Bloomberg/web calls. That's
deliberate: it lets you validate the citation model and widget UX first,
before wiring in real (and slower-to-provision) data sources.
What's inside
authoring-mcp-app/
server.js MCP server (Express + @modelcontextprotocol/sdk)
sources.js Fake source registry (swap for real connectors later)
widgets/report.html The widget UI rendered inline in ChatGPT
package.json
Four tools are exposed:
search_sources— read-only lookup across the fake corpus, returns excerpts +sourceIdsrender_report— draws the widget with sections + resolved citationsupdate_section— patches one section after a manual edit or AI refineexport_report— returns the draft as Markdown with a numbered source list
1. Prerequisites
- Node.js 18+
- ChatGPT Plus or Pro on the web (Developer Mode is web-only right now)
- A tunneling tool: ngrok is the easiest, or Cloudflare Tunnel, or ChatGPT's own "Secure MCP Tunnel" option (offered when you create the app if you don't have a public URL yet)
2. Run it locally
cd authoring-mcp-app
npm install
npm start
You should see:
Authoring MCP server listening on http://localhost:3000/mcp
Sanity-check it's alive: curl http://localhost:3000/health → {"ok":true}.
3. Expose it over HTTPS
In a second terminal:
ngrok http 3000
Copy the https://xxxx.ngrok-free.app URL it prints. Your MCP endpoint is
that URL + /mcp, e.g. https://xxxx.ngrok-free.app/mcp.
(Keep this running — every time you restart ngrok without a paid/reserved domain, the URL changes and you'll need to reconnect the app in ChatGPT.)
3b. Or: deploy to Render.com instead of tunneling
A tunnel dies the moment your laptop sleeps or your terminal closes. For
repeated testing, it's more reliable to just deploy the server somewhere
with a permanent URL. Render's free tier works well for this and needs
almost no setup — a render.yaml is already included in this project.
-
Push this project to GitHub. Render deploys from a Git repo, not a zip upload.
cd authoring-mcp-app git init git add . git commit -m "Authoring MCP prototype"Create an empty repo on github.com (no README/license, so it stays empty), then:
git remote add origin https://github.com/<you>/authoring-mcp-app.git git branch -M main git push -u origin main -
Create the Render service.
- Go to render.com → sign up/log in (GitHub login is easiest) → New → Blueprint.
- Pick the repo you just pushed. Render will read
render.yamland pre-fill everything: runtime Node, build commandnpm install, start commandnpm start, plan Free. - Click Apply / Create Web Service.
If you'd rather configure by hand instead of using the blueprint (New → Web Service instead of Blueprint), set:
- Runtime: Node
- Build command:
npm install - Start command:
npm start - Instance type: Free
- No environment variables are required — the app already reads
Render's injected
PORT(process.env.PORT), so it binds correctly without changes.
-
Wait for the first deploy (a couple of minutes). Render gives you a URL like
https://authoring-mcp-app.onrender.com. Confirm it's alive:curl https://authoring-mcp-app.onrender.com/health→
{"ok":true} -
Your MCP server URL for ChatGPT is that same URL +
/mcp:https://authoring-mcp-app.onrender.com/mcpUse this directly in step 5 below — skip ngrok/Secure MCP Tunnel entirely, since Render already gives you a public HTTPS endpoint.
Two things to know about the free tier:
- Cold starts: after ~15 minutes of no traffic, Render spins the free instance down. The next request (including ChatGPT's) triggers a restart that can take 30-60 seconds — the first tool call after a lull may look like it's hanging before it responds. Fine for a prototype; upgrade to a paid instance later if that latency becomes annoying.
- State resets on redeploy/restart:
currentReportlives in memory (see "Known simplifications" below), so a cold start or a new deploy clears whatever draft you were working on. Re-runrender_reportto get a fresh draft going again.
To redeploy after making changes: git add . && git commit -m "..." && git push
— Render auto-deploys on push once it's connected to the repo.
4. Turn on Developer Mode in ChatGPT
- Go to chatgpt.com → Settings → Apps & Connectors → Advanced (some accounts show this under Settings → Security and login instead — check both).
- Toggle Developer mode on. This is what lets you add an app by pointing at your own MCP URL instead of picking from the directory.
5. Connect your server as an app
- Go to Settings → Apps → Create (or chatgpt.com/plugins → the + button).
- Fill in:
- Name: Authoring (Prototype)
- Description: Drafts investment report sections with citations to internal, market-data, and web sources.
- MCP server URL: your public URL +
/mcp(from ngrok, Secure MCP Tunnel, or your Render deployment — whichever you used in step 3)
- Click Create. If the connection succeeds, you'll see the four tools listed. If it fails, see Troubleshooting below.
6. Test it in a chat
Start a new conversation and try prompts like:
"Use the Authoring app to look into APAC channel checks, then draft a Channel Checks section with citations."
ChatGPT should call search_sources, then render_report, and the widget
should appear inline showing the section text with clickable [1] [2]
citation markers. Try:
- Clicking a citation marker → shows the source card underneath
- Edit text → make a manual change → Done editing → this calls
update_sectionso the model knows about your edit for later turns - Ask AI to refine → type an instruction → this sends a follow-up message telling the model what to change
- Export draft → calls
export_reportand prints Markdown with a numbered source list back into the chat
7. Iterate
- Add more fake documents to
sources.jsto test broader queries. - Tighten the tool
descriptionfields if the model picks the wrong tool or won't callrender_reportunprompted — Apps SDK discovery is driven almost entirely by these descriptions. - If you want to test protocol-level issues before touching ChatGPT at all,
use the MCP Inspector:
npx @modelcontextprotocol/inspectorand point it at your/mcpURL.
Known simplifications (fix before this touches real users)
- No auth — anyone with your ngrok URL can call these tools. Fine for a solo prototype behind a random tunnel URL; not fine once real data or other people are involved. Add OAuth (the SDK supports DCR/OAuth 2.1) next.
- In-memory, single draft —
currentReportis one global variable, not per-user or per-session. Good enough to test the UX; needs a real datastore (keyed by user + report id) before more than one person uses it. - Fake sources only — swap
sources.js's functions for real calls to your document store / market-data vendor / web search once the citation UX is validated. - Stateless HTTP transport — each request spins up a fresh MCP session
server-side. That's fine here because the report state lives in
currentReport, not in the transport session — but if you add multi-user support, move that state into a real store keyed by user.
Troubleshooting
- "Create" fails / can't connect: confirm the ngrok URL is reachable
from a browser in an incognito window, and that you included
/mcpin the URL you gave ChatGPT. - Tools don't show up: check
/tmpor your terminal for server errors; re-run thecurl .../tools/listcommand from this README's testing section against your local server directly to confirm it's healthy independent of ChatGPT. - Widget doesn't render: confirm
resources/list(see testing section) returnsui://widget/report.htmlwithmimeType: text/html+skybridge— ChatGPT keys off that MIME type to know it's a widget, not a plain resource.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。