# Swagbucks API and MCP server for AI agents (/sites/swagbucks)

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

- Site: https://swagbucks.com
- Functions: 2
- 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.

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

- `getStoreRate`: Gets Swagbucks' current cash-back rate for one store (percent, SB points per dollar, up-to and promo marks), read from CashbackMonitor's public…
- `searchStores`: Searches stores by name and returns Swagbucks' cash-back rate for each match it offers (up to 10 stores checked), read from CashbackMonitor's public…

## Call one

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

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

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

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