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.

https://putcode.dev/mcp

Connector details

If an app asks for a name, description or icon when you add the server, copy these.

Name

Putcode

Description

Your code snippet library over MCP. Save, search, fork and reuse HTML, CSS and JS snippets with live previews, on your own or with your team.

Icon URL

https://putcode.dev/icon.png

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/mcp

Then run /mcp, pick putcode and authenticate.

Codex

codex mcp add putcode --url https://putcode.dev/mcp
codex mcp login putcode

Cursor, 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

readSearch public work; read your snippets, favorites and collections.
writeCreate, update and fork snippets; add usage notes; manage favorites and collections.
publishPublish without waiting, if your publish setting is “Publish right away”.
deleteDelete 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

GroupToolInput → output
Discoverysearch_playgroundsquery, category, tags, sort → public snippets
Discoveryget_playgroundid or slug → full HTML/CSS/JS
Discoverylist_popularcategory, limit
Discoverylist_categoriescategories with counts
Discoverysearch_componentsquery, filters → snippets with usage notes
Create & editcreate_playgroundtitle, html, css, js, category, tags, team → private draft
Create & editupdate_playgroundid + changed fields → new revision
Create & editfork_playgroundsource_id → your copy, attribution kept
Create & editdelete_playgroundid (needs delete permission)
Create & editpublish_playgroundid, visibility → published or pending your approval
Collectionscreate_collectionname, description, visibility
Collectionsadd_to_collectioncollection_id, playground_id
Collectionsremove_from_collectioncollection_id, playground_id
Collectionslist_collectionsyour collections
Collectionsget_collectioncollection_id → items
Libraryget_my_playgroundsquery, status
Libraryget_my_favorites—
Teamslist_teamsyour teams and role in each
Teamsget_team_playgroundsteam, query → the team's shared library
Libraryget_my_profileprofile + this connection's permissions
Librarysave_favoriteplayground_id, favorite
Usage notessave_componentplayground_id, name, usage, dependencies, browser_support
Usage notesget_componentcomponent_id → source + usage
Usage noteslist_my_componentsquery

Resources

  • putcode://categories: the list of categories
  • putcode://popular: popular public snippets
  • putcode://guidelines: contribution guidelines
  • putcode://my-library: your snippets and favorites
  • putcode://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.