# Paul Graham API and MCP server for AI agents (/sites/paulgraham)

An API for Paul Graham: let Claude, ChatGPT or your own code read Paul Graham through 3 functions, over MCP, HTTP, Node or Python. No Paul Graham API key needed.

- Site: https://paulgraham.com
- Functions: 3
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- Paul Graham only, one tool per function: `https://api.bowmark.ai/mcp/site/paulgraham` (name it `bowmark-paulgraham`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-paulgraham https://api.bowmark.ai/mcp/site/paulgraham`
- Codex: `codex mcp add bowmark-paulgraham --url https://api.bowmark.ai/mcp/site/paulgraham`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/paulgraham" }` under the name `bowmark-paulgraham` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `getEssay`: Reads one Paul Graham essay from paulgraham.com/<slug>.html: title, the month line it opens with, and the full text including notes.
- `listEssays`: Lists every essay on paulgraham.com/articles.html in the site's newest-first order, with the slug getEssay takes.
- `searchEssays`: Finds essays whose title contains every word of the query (the site has no search of its own), newest first.

## Call one

In a Bowmark script, each function is `bowmark.providers.paulgraham.<name>`. Ask `get_library` for paulgraham.com to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on paulgraham.com, and with which arguments?
get_library({ query: "paulgraham.com" })

// 2. Call it in a script
const result = await bowmark.providers.paulgraham.getEssay({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
