# Install Pustak MCP

You are installing the Pustak MCP server for this user.

Pustak stores standalone HTML pages and serves them from the edge. Once connected, you can list, read, write, delete, and set visibility of the user's pages, and you get the `explainer` and `learn` prompts.

## Endpoint

Streamable HTTP, OAuth 2.1 (passwordless email + OTP — no API token):

https://pustak.prashamhtrivedi.app/mcp

## What to do

1. Detect which product you are running in (Cursor, Claude Code, Claude Desktop, or another MCP client).
2. Add a remote MCP server named `pustak` pointing at the endpoint above.
3. Have the user complete the in-browser OAuth login. First-time users pick a username slug.
4. Call `whoami` to confirm. Tell them their pages live under `/<username>/`.

## Client-specific install

### Claude Code

```
claude mcp add --transport http pustak https://pustak.prashamhtrivedi.app/mcp
```

### Cursor

Write this into `.cursor/mcp.json` (project) or the user's MCP config. If you can edit the file, do it; then ask them to reload MCP if the server does not appear.

```json
{
  "mcpServers": {
    "pustak": {
      "type": "http",
      "url": "https://pustak.prashamhtrivedi.app/mcp"
    }
  }
}
```

### Claude Desktop and other HTTP MCP clients

Same JSON shape (`type: "http"`, `url` as above) in that product's MCP config.

## After it works

Publish HTML artifacts with `write_page`. Use the `explainer` prompt to turn a concept into a page, or `learn` to find one sharp thing this person can use and publish it.

If you cannot add MCP config yourself, show the user https://pustak.prashamhtrivedi.app/install and the commands above, then stop.