पुस्तक

A prompt · for your agent

Install this MCP server.

Give the line below to your agent. It fetches the instructions, adds Pustak as a remote MCP server, sends you through sign-in, and then it can publish pages for you.

Open .md Why this
Paste this

Fetch and execute the appropriate instructions to set me up for Pustak from https://pustak.prashamhtrivedi.app/install.md

Humans can install it by hand too — the commands are in the markdown. Agents: fetch that URL; the leaf is the same text.

# 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.

Endpoint · https://pustak.prashamhtrivedi.app/mcp