The Putcode MCP server
Your agent can do what you do on the site: search snippets, write and fork them, add them to collections and publish them. It acts as you, with the permissions you give it.
Connector details
If an app asks for a name, description or icon when you add the server, copy these.
Name
Description
Icon URL
256 × 256 PNG, 2 KB. Need SVG? Use https://putcode.dev/favicon.svg
Connect
The short version is below. For screens, sign-in and fixes, follow the guide for your app: ChatGPT, Claude, Claude Code, Codex, Cursor, Gemini, Gemini CLI, VS Code, Other apps.
ChatGPT
ChatGPT Plugins → + → Add custom MCP server. Name it Putcode, paste the URL above and choose OAuth. Create it as a plugin, sign in to Putcode, pick permissions and click Allow. In a chat, type @ and pick Putcode.
Claude (web, desktop, mobile)
Customize → Connectors → Add → Custom connector. Name it Putcode and paste the URL above. Click Connect, sign in to Putcode and pick permissions.
Claude Code
claude mcp add --transport http putcode https://putcode.dev/mcpThen run /mcp, pick putcode and authenticate.
Codex
codex mcp add putcode --url https://putcode.dev/mcp
codex mcp login putcodeCursor, VS Code, Windsurf and others
{
"mcpServers": {
"putcode": {
"url": "https://putcode.dev/mcp"
}
}
}Or paste this into any agent and it will set itself up: Please follow instructions at https://putcode.dev/llms.txt and set up Putcode.
Clients that can't do OAuth can send a personal token from Agents & MCP: Authorization: Bearer pc_…
Permissions
read | Search public work; read your snippets, favorites and collections. |
write | Create, update and fork snippets; add usage notes; manage favorites and collections. |
publish | Publish without waiting, if your publish setting is “Publish right away”. |
delete | Delete snippets and collections. |
By default, publish_playground queues a request you approve in your dashboard. Identity always comes from the token, never from tool arguments, and private snippets are invisible to every other account. Every call is logged under Agent activity. Limits depend on the plan: 30 requests a minute per connection on Free, 600 on Pro. See pricing.
Tools
| Group | Tool | Input → output |
|---|---|---|
| Discovery | search_playgrounds | query, category, tags, sort → public snippets |
| Discovery | get_playground | id or slug → full HTML/CSS/JS |
| Discovery | list_popular | category, limit |
| Discovery | list_categories | categories with counts |
| Discovery | search_components | query, filters → snippets with usage notes |
| Create & edit | create_playground | title, html, css, js, category, tags, team → private draft |
| Create & edit | update_playground | id + changed fields → new revision |
| Create & edit | fork_playground | source_id → your copy, attribution kept |
| Create & edit | delete_playground | id (needs delete permission) |
| Create & edit | publish_playground | id, visibility → published or pending your approval |
| Collections | create_collection | name, description, visibility |
| Collections | add_to_collection | collection_id, playground_id |
| Collections | remove_from_collection | collection_id, playground_id |
| Collections | list_collections | your collections |
| Collections | get_collection | collection_id → items |
| Library | get_my_playgrounds | query, status |
| Library | get_my_favorites | — |
| Teams | list_teams | your teams and role in each |
| Teams | get_team_playgrounds | team, query → the team's shared library |
| Library | get_my_profile | profile + this connection's permissions |
| Library | save_favorite | playground_id, favorite |
| Usage notes | save_component | playground_id, name, usage, dependencies, browser_support |
| Usage notes | get_component | component_id → source + usage |
| Usage notes | list_my_components | query |
Resources
putcode://categories: the list of categoriesputcode://popular: popular public snippetsputcode://guidelines: contribution guidelinesputcode://my-library: your snippets and favoritesputcode://my-collections: your collections
Prompts
create_css_component, improve_css_component, make_responsive, convert_design_to_css, review_css_accessibility, optimize_css, document_component. In Claude Code they show up as slash commands.
The sandbox
Previews run on an isolated origin with connect-src 'none': no fetch, no WebSockets, no access to Putcode cookies. Scripts can only load from esm.sh, so npm packages work as ES modules: import gsap from "https://esm.sh/gsap@3.12.5". Pin versions. Web Workers, WebAssembly, WebGPU and eval are off, and a preview that keeps the browser busy for several seconds is paused. Google Fonts stylesheets and https images work.