# Lobsters API and MCP server for AI agents (/sites/lobsters)

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

- Site: https://lobste.rs
- Functions: 5
- 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.

- Lobsters only, one tool per function: `https://api.bowmark.ai/mcp/site/lobsters` (name it `bowmark-lobsters`)
- 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-lobsters https://api.bowmark.ai/mcp/site/lobsters`
- Codex: `codex mcp add bowmark-lobsters --url https://api.bowmark.ai/mcp/site/lobsters`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/lobsters" }` under the name `bowmark-lobsters` 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

- `getStory`: Returns one Lobsters story by its short id or lobste.rs/s/ url, with its whole comment thread in thread order.
- `getUser`: Returns one Lobsters member's public profile: join date, admin/moderator flags, about text, inviter and linked handles.
- `listStories`: Returns the Lobsters hottest, newest or active story list, or one tag's stories, in the site's own order.
- `listTags`: Returns every active Lobsters tag with its description and category.
- `search`: Keyword-searches every Lobsters story through the site's own /search page, returning title, link, score, comments, submitter, tags and date per hit.

## Call one

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

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

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

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