MCP servers · Substack · MCP server
Connect Codex CLI to Substack
One line gives Codex CLI your Substack account as tools: 3 endpoints, read posts, search posts, called with your own connection. No key in the prompt, a receipt for every call, revoke Codex CLI's access alone any time.
Three steps
- Create a free 0n3 account and connect Substack. Paste a key or sign in; it lands in your vault, encrypted.
- Install 0n3 into Codex CLI. OpenAI's terminal agent reads 0n3 over Streamable HTTP with a token from your environment.
- Ask Codex CLI: whoami. Then: "List posts in Substack".
Put the token in your environment
export ON3_TOKEN="<your 0n token>"
Add it to your shell profile so Codex finds it next time.
The line above carries a placeholder; 0n3.app/install mints a real key named for Codex CLI and fills it in.
What Codex CLI can then do in Substack
Read posts · List a publication's posts (archive) and fetch a single post by slug2
List posts
GET /archiveGet a post
GET /posts/{slug}Search posts · Search posts within a publication1
Search posts
GET /post/searchSubstack in other AI clients
Claude Code + SubstackMCP server + skillClaude (desktop & claude.ai) + SubstackconnectorChatGPT + Substackconnector · GPT actionGemini CLI + SubstackMCP serverCursor + SubstackMCP serverVS Code (Copilot) + SubstackMCP serverWindsurf + SubstackMCP server
