# CSS Observer > A home for your CSS snippets. Save HTML/CSS/JS that you build with ChatGPT, Claude or any AI agent, each with a live preview. Reuse it in your next chat with any AI, embed it in a blog or guide, or share it. **Brand name:** always **CSS Observer**. Domain: `css.observer`. A snippet is HTML, CSS and optional JavaScript rendered in a sandboxed preview. Snippets start as private drafts. Owners can publish them as Unlisted (link only) or Public (listed in Explore at https://css.observer/explore and on their profile). Published snippets can be forked, collected, and embedded on other sites (https://css.observer/embed/). Snippets can carry usage notes, dependencies and browser support. It's free. Sign up at https://css.observer/signup with email and password, or continue with Google. **MCP server URL (use this everywhere):** `https://css.observer/mcp` When an app asks for connector metadata, use: - Name: `CSS Observer` - Description: `Your CSS snippet library over MCP. Save, search, fork and reuse HTML/CSS snippets with live previews.` - Icon: `https://css.observer/icon.png` (256×256 PNG, 4 KB; SVG: `https://css.observer/favicon.svg`) ## Connect an agent Add the MCP URL above, then authenticate. Prefer OAuth: the app opens CSS Observer, the user signs in, picks permissions and clicks Allow. Use a personal `cso_…` token only for apps that don't support OAuth: https://css.observer/app/agents **ChatGPT (web, custom plugin)** 1. ChatGPT Plugins → + → Add custom MCP server. 2. Name `CSS Observer`, URL `https://css.observer/mcp`, Authentication: OAuth. 3. Create as a plugin → sign in → Allow → Install. In a chat, type `@` and pick CSS Observer. **Claude (claude.ai / Desktop)** 1. Customize → Connectors → Add → Custom connector. 2. Name `CSS Observer`, URL `https://css.observer/mcp`, paste the description if asked. 3. Add → Connect → sign in to CSS Observer → Allow. **Claude Code** ```bash claude mcp add --transport http css-observer https://css.observer/mcp ``` Then `/mcp` → css-observer → Authenticate. **Cursor** Add to `.cursor/mcp.json` (project or user), then approve the sign-in prompt: ```json { "mcpServers": { "css-observer": { "url": "https://css.observer/mcp" } } } ``` **Codex (CLI / IDE)** ```bash codex mcp add css-observer --url https://css.observer/mcp codex mcp login css-observer ``` **Bearer token (headless / no OAuth)** ```json { "mcpServers": { "css-observer": { "url": "https://css.observer/mcp", "headers": { "Authorization": "Bearer cso_YOUR_TOKEN" } } } } ``` Create or revoke tokens at https://css.observer/app/agents. Never share them. **After connecting** Ask in plain words: "save this button to CSS Observer", "find a pricing table in my snippets", "fork the command palette and make it match our brand". To confirm the connection works, call `get_my_profile`. ## How agents should use it - Before writing a snippet from scratch, search first (`search_playgrounds`, or `search_components` for snippets with usage notes) and fork a close match. - `create_playground` always makes a private draft. Give the user the returned URL. Publish only when they ask; `publish_playground` may wait for their approval depending on their settings. - `update_playground` records a revision on every call, so batch edits. - Previews block network requests and external scripts. Keep code self-contained. Google Fonts stylesheets and https images work. - Never delete without the user's explicit confirmation. Never put secrets in snippets. **MCP tools:** `search_playgrounds`, `get_playground`, `list_popular`, `list_categories`, `search_components`, `create_playground`, `update_playground`, `fork_playground`, `delete_playground`, `publish_playground`, `create_collection`, `add_to_collection`, `remove_from_collection`, `list_collections`, `get_collection`, `get_my_playgrounds`, `get_my_favorites`, `get_my_profile`, `save_favorite`, `save_component`, `get_component`, `list_my_components`. Full reference: https://css.observer/mcp.txt ## Docs - [MCP reference](https://css.observer/mcp.txt): Endpoint, auth, permissions, every tool, resources, prompts - [MCP setup page](https://css.observer/docs/mcp): The same setup steps for people - [Guidelines](https://css.observer/guidelines): What to publish and how ## Agent discovery - [MCP server card](https://css.observer/.well-known/mcp/server-card.json) - [OAuth protected resource](https://css.observer/.well-known/oauth-protected-resource/mcp) - [OAuth authorization server](https://css.observer/.well-known/oauth-authorization-server) ## Product links - [Home](https://css.observer/): Product - [Explore](https://css.observer/explore): Public snippets - [New snippet](https://css.observer/new): Editor - [Agents & MCP](https://css.observer/app/agents): Connect or revoke apps and tokens ## Optional - [Privacy](https://css.observer/privacy): Privacy policy - [Terms](https://css.observer/terms): Terms of service