puter-claude-mcp
Provides free, unlimited access to Claude AI models via Puter.js for AI coding agents and IDEs through the MCP protocol.
README
@anthelis/puter-claude-mcp
Free, unlimited Claude access for any AI coding agent or IDE — powered by Puter.js.
This is an MCP (Model Context Protocol) server that gives AI coding assistants like Antigravity, Cursor, Windsurf, and others access to Claude Sonnet 4.6 and Claude Fable 5 completely for free — no API keys, no billing, no limits.
It uses Puter.js (the "User-Pays" model) via a local browser bridge, so the requests run through your own logged-in Puter account in a browser tab.
Legal note: Each user must log into their own Puter.com account in the browser bridge. This project does not circumvent any API limits — it simply makes Puter's official free developer offering accessible via MCP. This project is not affiliated with, endorsed by, or sponsored by Puter or Anthropic. All Claude AI capabilities are provided by Puter.js under their Terms of Service.
How It Works
[ Your IDE ] [ Browser Tab ]
│ │
│ (MCP / stdio) │ (polls /api/poll)
▼ ▼
[ index.js ] ──(HTTP POST)──► [ relay.js ]
(MCP Server) (Express Relay)
│
│ (puter.ai.chat)
▼
[ Claude API ]
relay.js— A small Express server you run once. It holds requests from the MCP server and delivers them to the browser.index.js— The MCP server your IDE launches. It exposes theask_claudetool and talks to the relay via HTTP.- Browser tab — You open
http://localhost:8081in your browser. It polls the relay every second, sends requests to Claude via Puter.js, and posts the results back.
Prerequisites
- Node.js v18 or higher
- A free Puter.com account (sign up is free)
- An IDE that supports MCP (Antigravity, Cursor, Windsurf, VS Code with MCP extension, etc.)
Installation
Option A: npx (Recommended — no install needed)
# Run the relay server directly
npx @anthelis/puter-claude-mcp relay
That's it! No cloning, no npm install.
Option B: Install globally
npm install -g @anthelis/puter-claude-mcp
# Then run the relay:
puter-claude-relay
Option C: Clone from source
git clone https://github.com/ANTHELIS/puter-claude-mcp.git
cd puter-claude-mcp
npm install
npm run relay
Setup
Step 1: Start the Relay Server
Open a terminal in the project folder and run:
npm run relay
Keep this terminal open. You should see:
✅ Puter-Claude Relay Server running at http://localhost:8081
Step 2: Open the Browser Bridge
Open http://localhost:8081 in your web browser (Chrome, Edge, Firefox — any works).
You will be prompted to log in to Puter if you haven't already. Once logged in, the page will show:
✅ Connected — Waiting for IDE requests...
Keep this tab open while you code.
Step 3: Configure Your IDE
Add the following to your IDE's MCP configuration file:
{
"mcpServers": {
"puter-claude": {
"command": "npx",
"args": ["-y", "@anthelis/puter-claude-mcp"]
}
}
}
If you cloned from source, use
"command": "node"and"args": ["/absolute/path/to/@anthelis/puter-claude-mcp/index.js"]instead.
| IDE | Config file location |
|---|---|
| Antigravity IDE | C:\Users\<you>\.gemini\config\mcp_config.json |
| Cursor | ~/.cursor/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| VS Code (MCP ext) | .vscode/mcp.json in workspace |
Step 4: Reload Your IDE
Reload the IDE window so it picks up the new MCP server. You're ready!
Usage
Once everything is set up, just ask your AI coding agent to "ask Claude" to do something:
- "Ask Claude to write a Python script that reads a CSV and outputs a chart"
- "Ask Claude to review my
index.jsfor bugs" - "Ask Claude to generate unit tests for this function"
The agent will call the ask_claude MCP tool, the browser tab will handle it silently, and Claude's response comes back in seconds.
Available Models
| Model | Puter.js name |
|---|---|
| Claude Sonnet 4.6 | claude-sonnet-4-6 |
| Claude Fable 5 | claude-fable-5 |
Configuration
You can configure the relay port via an environment variable:
PUTER_RELAY_PORT=9090 npm run relay
And set the relay URL for the MCP server:
{
"mcpServers": {
"puter-claude": {
"command": "node",
"args": ["/path/to/index.js"],
"env": {
"PUTER_RELAY_URL": "http://localhost:9090"
}
}
}
}
Stopping the Server
To stop the relay server, simply press Ctrl+C in the terminal running npm run relay.
Architecture Details
- The relay uses a request queue — only one Claude request is processed at a time.
- The browser bridge polls every second for new work, keeping the connection alive.
- The MCP server waits up to 120 seconds for a response before timing out.
- All communication is localhost-only — nothing leaves your machine except the Puter.js API call from your browser.
Contributing
PRs are welcome! Some ideas for improvements:
- [ ] Support for concurrent requests (queue-based)
- [ ] Support for streaming responses
- [ ] A richer bridge UI with request history
- [ ] Support for additional Puter.js models (GPT-4o, Gemini, etc.)
License
MIT — do whatever you want with it.
Credits
- Built with Puter.js — the "User-Pays" AI platform
- Uses the Model Context Protocol SDK by Anthropic
- Inspired by the Puter.js Free Claude API tutorial
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。