# Goodbits — how to use (mcp.ai)

Connect your Goodbits account and use 5 tools for email newsletters straight from your AI agent. Connect with your own API key. Goodbits is a service that helps you and your business create stellar newsletters from the best links your team and customers are reading.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_goodbits?ms=1787291460000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `goodbits_create_link`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/goodbits`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/goodbits/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/goodbits/create/link` — Tool to create a content link in Goodbits Content Library. Use when you have an article URL and optional metadata ready.
  - body: { url: string, title?: string, description?: string, image_candidates?: string[], fetch_remote_thumbnail_url?: string }
- `POST https://api.mcp.ai/api/goodbits/create/subscriber` — Tool to add a new subscriber to the newsletter. Use after confirming user opt-in.
  - body: { subscriber: object }
- `POST https://api.mcp.ai/api/goodbits/delete/subscriber` — Tool to mark a subscriber as deleted. Use when you need to prevent future emails being sent to a subscriber.
  - body: { email: string }
- `POST https://api.mcp.ai/api/goodbits/get/newsletter` — Tool to fetch newsletter identifier and name. Use after authenticating with your API token.
- `POST https://api.mcp.ai/api/goodbits/update/subscriber/status` — Tool to update subscriber status. Use when you need to change an existing subscriber’s subscription status by email. Example: "Update the status of john@example.com to unsubscribed"
  - body: { email: string, status: string }

## Example prompts
- "What can I do in Goodbits?"
- "Show me a summary of my Goodbits account"

## More
- Page: https://mcp.ai/goodbits
- Agent spec (llms.txt): https://mcp.ai/goodbits/llms.txt
- Postman collection: https://mcp.ai/goodbits/postman.json
