# HuffPost API and MCP server for AI agents (/sites/huffpost)

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

- Site: https://huffpost.com
- Functions: 9
- 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.

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

- `browseSection`: Lists the newest stories in one HuffPost section, such as politics, us-news, world-news, life, entertainment or voices, with paging.
- `browseTopic`: Lists the newest stories under one HuffPost topic, such as us-congress or extremism, with paging.
- `getArticle`: Reads one HuffPost story by its entry address or id: headline, dek, authors, publish time, section and the body text.
- `getAuthor`: Reads one HuffPost writer's page by slug (/author/<slug>): name, bio and the stories listed on it, with paging.
- `getHoroscope`: Reads one sign's horoscope from /horoscopes/<sign>, for aries, taurus, gemini, cancer, leo, virgo, libra, scorpio, sagittarius, capricorn, aquarius…
- `listHeadlines`: Lists the stories on HuffPost's home page, in the order the page shows them, with each one's headline, section and link.
- `listNewsletters`: Lists the newsletters HuffPost offers from /newsletters, with each one's name and description.
- `listSections`: Lists HuffPost's sections (News, Life, Entertainment, Voices, Opinion, Video and the rest) with the path each one lives at, for browseSection.
- `searchArticles`: Searches HuffPost's stories for a phrase, quoted or not, and lists the matches with their links and dates, with paging.

## Call one

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

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

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

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