CodexMCP
Enables Claude to offload mechanical, output-heavy tasks like boilerplate, type generation, and summarization to OpenAI while keeping reasoning in-context.
README
CodexMCP
Personal MCP server that exposes a query_offload tool to Claude. Lets Claude delegate mechanical, output-heavy tasks (boilerplate, type generation, summarisation) to OpenAI while keeping reasoning in-context.
Setup
1. Install dependencies
npm install
2. Make codexmcp available globally
npm link
This creates a global codexmcp binary pointing at bin/codexmcp.js.
3. Configure environment
cp .env.example .env
Edit .env and fill in:
| Variable | Description |
|---|---|
TUNNEL_URL |
Your Tailscale Funnel URL (e.g. https://t480.tail1234.ts.net) |
OPENAI_API_KEY |
OpenAI API key |
JWT_SECRET |
Any random 32+ character string |
PORT |
Port to listen on (default 3000) |
4. Tailscale Funnel (T480)
Tailscale Funnel exposes a local port on a stable public HTTPS URL — no dynamic DNS, no port forwarding.
# On the T480, run once (survives reboots if you enable it):
tailscale funnel 3000
Get your permanent URL:
tailscale funnel status
# Example output: https://t480.tail1234.ts.net -> localhost:3000
Copy that URL into TUNNEL_URL in your .env.
5. Start the server
codexmcp
Expected output:
codexmcp running on http://0.0.0.0:3000
MCP endpoint (add to claude.ai): https://t480.tail1234.ts.net/mcp
6. Verify
curl http://localhost:3000/health
# {"status":"ok","server":"codexmcp","version":"0.0.1"}
7. Connect to claude.ai
- Go to claude.ai → Settings → Connectors → Add custom connector
- Paste your
TUNNEL_URL/mcp(e.g.https://t480.tail1234.ts.net/mcp) - Complete the OAuth flow — it auto-approves (single-user server)
8. Create a Claude Project
- Create a new Project in claude.ai
- Add the codexmcp connector to it
- Paste the system prompt below into Project Instructions
Permanent deployment with systemd (T480)
Copy the repo to the T480, install, link, and deploy the service:
# On T480
git clone <repo> ~/codexmcp
cd ~/codexmcp
npm install
npm link
# Copy and enable the service
sudo cp offload-mcp.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable offload-mcp
sudo systemctl start offload-mcp
# Check status
sudo systemctl status offload-mcp
journalctl -u offload-mcp -f
The ExecStart in offload-mcp.service points to /usr/local/bin/codexmcp (where npm link installs the global binary on Linux). Adjust if your npm prefix is different (npm prefix -g to check).
Claude Project system prompt
Paste this verbatim into the Project Instructions field:
## Behavior
- Never glaze. Be direct, honest, no sycophancy.
- Make no assumptions. Use the MCQ tool to clarify before proceeding. If skipped, pick the best option yourself.
- Format all responses carefully in clean markdown.
- Think before responding unless the query is trivial.
- When asked for opinions, be unbiased — say what is true, not what I want to hear.
## Task Routing
For every response, mentally split the task first:
1. Pure mechanical output (boilerplate, type generation, bulk code, summarizing large text, repetitive patterns) → call query_offload, return the result directly.
2. Mixed task (reasoning + output) → handle the reasoning yourself, call query_offload for the output part.
3. Pure reasoning (debugging, architecture, review, explanation) → answer directly, no tool call.
Call query_offload automatically. Never ask if you should use it.
Development
npm run dev # node --watch src/server.js
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。