Beamer MCP
by ncaves
README.md
# Beamer MCP (unofficial)
[](https://github.com/ncaves/beamer-mcp/actions/workflows/ci.yml)
[](LICENSE)
An open-source [Model Context Protocol](https://modelcontextprotocol.io) server for the
[Beamer](https://www.getbeamer.com) API. Connect Claude, ChatGPT, Cursor or any MCP client to your
Beamer account and work with your changelog, feature requests, NPS and users in natural language.
> **Unofficial.** This project is not affiliated with, endorsed by or supported by Beamer.
> "Beamer" is a trademark of its owner. It only uses Beamer's public REST API
> ([docs](https://getbeamer-api.pages.dev/)).
**What you can ask once connected:**
- "Draft a changelog post in English and Spanish about the new export feature, but don't publish it."
- "Which posts from last month had the most negative reactions? Summarise the comments."
- "List the top-voted feature requests that are still under review."
- "What's our NPS for November? Group the detractors' feedback by theme."
- "How many unread posts does user 1234 have?"
---
## Contents
- [Features](#features)
- [Authentication: just your API key](#authentication-just-your-api-key)
- [Quick start](#quick-start)
- [Connect your client](#connect-your-client)
- [Claude (claude.ai web and desktop)](#claude-claudeai-web-and-desktop)
- [Claude Code](#claude-code)
- [Claude Desktop (local, stdio)](#claude-desktop-local-stdio)
- [ChatGPT](#chatgpt)
- [Cursor, VS Code, Windsurf and others](#cursor-vs-code-windsurf-and-others)
- [Anthropic API and OpenAI API](#anthropic-api-and-openai-api)
- [Tools](#tools)
- [Configuration](#configuration)
- [Self-hosting](#self-hosting)
- [Security](#security)
- [Development](#development)
- [License](#license)
---
## Features
- **49 tools covering the whole Beamer API v0**: posts, comments, reactions, unread posts, feature
requests, votes, users, NPS, team and GDPR data deletion.
- **Bring your own key.** Each request carries its own Beamer API key, so one deployment can serve
any number of Beamer accounts. Nothing is stored.
- **Two transports.** Streamable HTTP for remote clients (Claude, ChatGPT, Cursor...) and stdio for
local clients.
- **Read-only mode** for safe exploration: hide every tool that writes or deletes.
- **Tool annotations** (`readOnlyHint`, `destructiveHint`, `idempotentHint`) so clients can ask for
confirmation before destructive calls.
- Clear errors: Beamer's status codes are explained (bad key, plan limit, quota reached...).
- Stateless, tiny Docker image, health check included. Ready for Coolify, Fly.io, Render or Railway.
## Authentication: just your API key
Get a key in Beamer under **Settings → API**. Give it the permissions you need (read posts,
create posts, and so on).
The HTTP server accepts the key in any of these forms, in order of preference:
| Where | Example | Use it with |
|---|---|---|
| `Authorization` header | `Authorization: Bearer <BEAMER_API_KEY>` | Claude Code, Cursor, VS Code, Anthropic/OpenAI APIs, scripts |
| `Beamer-Api-Key` header | `Beamer-Api-Key: <BEAMER_API_KEY>` | Same as above |
| URL path | `https://your-host/mcp/<BEAMER_API_KEY>` | claude.ai and ChatGPT (connector with **no authentication**), which can't send custom headers |
| Query string | `https://your-host/mcp?api_key=<BEAMER_API_KEY>` | Same as the URL path |
The server forwards the key to Beamer as the `Beamer-Api-Key` header. Treat a URL that contains
your key like a password. See [Security](#security).
## Quick start
```bash
# Local (stdio) — no server needed
BEAMER_API_KEY=your_key npx -y github:ncaves/beamer-mcp
```
```bash
# Remote (HTTP) with Docker
git clone https://github.com/ncaves/beamer-mcp.git && cd beamer-mcp
docker compose up -d
curl http://localhost:3000/health
```
Or from source:
```bash
git clone https://github.com/ncaves/beamer-mcp.git
cd beamer-mcp
npm install
npm run build
npm start # HTTP on :3000, endpoint /mcp
# or
BEAMER_API_KEY=your_key npm run start:stdio
```
Check that it works:
```bash
curl -s https://your-host/mcp \
-H "Authorization: Bearer $BEAMER_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"beamer_ping","arguments":{}}}'
```
## Connect your client
In the examples below, `https://your-host` is where you deployed the server
(see [Self-hosting](#self-hosting)).
### Claude (claude.ai web and desktop)
Custom connectors are available on Claude's Pro, Max, Team and Enterprise plans.
1. Open **Settings → Connectors** (on Team or Enterprise, an owner adds it under
**Admin settings → Connectors**).
2. Click **Add custom connector**.
3. Name: `Beamer`. URL: `https://your-host/mcp/<BEAMER_API_KEY>`
(add `?readonly=1` at the end for a read-only connector).
4. Leave the OAuth fields empty and click **Add**.
5. In a chat, enable the connector from the **+ → Connectors** menu and ask something like
*"Ping Beamer"*.
The connector also works in the Claude desktop and mobile apps once you add it on the web.
### Claude Code
```bash
claude mcp add --transport http beamer https://your-host/mcp \
--header "Authorization: Bearer $BEAMER_API_KEY"
```
Add `--scope user` to make it available in every project. Check it with `claude mcp list` or
`/mcp` inside Claude Code.
Prefer local? Use stdio instead:
```bash
claude mcp add beamer --env BEAMER_API_KEY=your_key -- npx -y github:ncaves/beamer-mcp
```
### Claude Desktop (local, stdio)
Edit `claude_desktop_config.json` (**Settings → Developer → Edit Config**):
```json
{
"mcpServers": {
"beamer": {
"command": "npx",
"args": ["-y", "github:ncaves/beamer-mcp"],
"env": {
"BEAMER_API_KEY": "your_key",
"BEAMER_MCP_READ_ONLY": "0"
}
}
}
}
```
Restart Claude Desktop. To use a remote deployment instead of a local process, add it as a
[custom connector](#claude-claudeai-web-and-desktop).
### ChatGPT
Custom MCP connectors need ChatGPT **developer mode**. It is available on Plus, Pro, Business,
Enterprise and Edu. On workspaces, an admin may have to enable it.
1. Go to **Settings → Apps & Connectors → Advanced settings** and turn on **Developer mode**.
2. Back in **Apps & Connectors**, click **Create** (or **Add new connector**).
3. Fill in:
- **Name**: `Beamer`
- **MCP server URL**: `https://your-host/mcp/<BEAMER_API_KEY>`
(add `?readonly=1` for read-only)
- **Authentication**: `No authentication`. The key travels in the URL.
4. Accept the warning about custom connectors and click **Create**.
5. In a new chat, pick **Developer mode** in the **+** menu, enable *Beamer*, and ask away.
ChatGPT asks for confirmation before running tools that write.
### Cursor, VS Code, Windsurf and others
Any client that supports remote Streamable HTTP servers with headers:
```json
{
"mcpServers": {
"beamer": {
"url": "https://your-host/mcp",
"headers": { "Authorization": "Bearer your_key" }
}
}
}
```
- **Cursor**: `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project).
- **VS Code**: `.vscode/mcp.json`. It uses `"servers"` instead of `"mcpServers"` and needs
`"type": "http"`.
- **Windsurf**: `~/.codeium/windsurf/mcp_config.json`. It uses `"serverUrl"` instead of `"url"`.
For clients that only support stdio, use the `npx` command from
[Claude Desktop](#claude-desktop-local-stdio). You can also bridge a remote server with
[`mcp-remote`](https://www.npmjs.com/package/mcp-remote):
```json
{
"command": "npx",
"args": ["-y", "mcp-remote", "https://your-host/mcp", "--header", "Authorization: Bearer ${BEAMER_API_KEY}"],
"env": { "BEAMER_API_KEY": "your_key" }
}
```
### Anthropic API and OpenAI API
**Anthropic Messages API** ([MCP connector](https://docs.anthropic.com/en/docs/agents-and-tools/mcp-connector)):
```json
"mcp_servers": [{
"type": "url",
"url": "https://your-host/mcp",
"name": "beamer",
"authorization_token": "your_beamer_api_key"
}]
```
**OpenAI Responses API** ([remote MCP](https://platform.openai.com/docs/guides/tools-remote-mcp)):
```json
"tools": [{
"type": "mcp",
"server_label": "beamer",
"server_url": "https://your-host/mcp",
"authorization": "your_beamer_api_key",
"require_approval": "always"
}]
```
Both send the token as `Authorization: Bearer ...`, which this server accepts.
## Tools
List endpoints return at most **10 items per page** (users and NPS: **100**). Use `page` to
paginate and the `*_count` tools for totals. Many parameters depend on your Beamer plan
(Starter, Pro, Scale); each tool's description says which.
| Tool | Endpoint | Type | Description |
|---|---|---|---|
| `beamer_ping` | POST `/ping` | read | Check that the Beamer API key works |
| `beamer_get_feed_url` | GET `/url` | read | Get the URL of the standalone Beamer feed (changelog page), optionally personalised for a user |
| `beamer_list_posts` | GET `/posts` | read | List Beamer posts (changelog / announcements) |
| `beamer_count_posts` | GET `/posts/count` | read | Count Beamer posts matching the same filters as beamer_list_posts |
| `beamer_get_post` | GET `/posts/{postId}` | read | Get one Beamer post by ID, with all its translations and stats (views, clicks, reactions) |
| `beamer_create_post` | POST `/posts` | write | Create a Beamer post (changelog entry / announcement) |
| `beamer_update_post` | PUT `/posts/{postId}` | write | Update a Beamer post |
| `beamer_delete_post` | DELETE `/posts/{postId}` | ⚠️ destructive | Permanently delete a Beamer post |
| `beamer_list_post_comments` | GET `/posts/{postId}/comments` | read | List comments (feedback) left by users on a post |
| `beamer_count_post_comments` | GET `/posts/{postId}/comments/count` | read | Count comments on a post |
| `beamer_get_post_comment` | GET `/posts/{postId}/comments/{commentId}` | read | Get one comment on a post |
| `beamer_create_post_comment` | POST `/posts/{postId}/comments` | write | Add a comment to a post on behalf of an end user |
| `beamer_delete_post_comment` | DELETE `/posts/{postId}/comments/{commentId}` | ⚠️ destructive | Permanently delete a comment on a post |
| `beamer_list_post_reactions` | GET `/posts/{postId}/reactions` | read | List reactions (positive / neutral / negative) on a post |
| `beamer_count_post_reactions` | GET `/posts/{postId}/reactions/count` | read | Count reactions on a post, optionally of one type |
| `beamer_get_post_reaction` | GET `/posts/{postId}/reactions/{reactionId}` | read | Get one reaction on a post |
| `beamer_create_post_reaction` | POST `/posts/{postId}/reactions` | write | Register a reaction to a post on behalf of an end user |
| `beamer_delete_post_reaction` | DELETE `/posts/{postId}/reactions/{reactionId}` | ⚠️ destructive | Permanently delete a reaction on a post |
| `beamer_list_unread_posts` | GET `/unread` | read | Get the posts a given user has not read yet (only feed-visible posts) |
| `beamer_count_unread_posts` | GET `/unread/count` | read | Count unread posts for a user |
| `beamer_list_feature_requests` | GET `/requests` | read | List feature requests (ideas / roadmap items) |
| `beamer_count_feature_requests` | GET `/requests/count` | read | Count feature requests matching the same filters as beamer_list_feature_requests |
| `beamer_get_feature_request` | GET `/requests/{featureRequestId}` | read | Get one feature request by ID (translations, status, vote and comment counts) |
| `beamer_create_feature_request` | POST `/requests` | write | Create a feature request |
| `beamer_update_feature_request` | PUT `/requests/{featureRequestId}` | write | Update a feature request (e.g |
| `beamer_delete_feature_request` | DELETE `/requests/{featureRequestId}` | ⚠️ destructive | Permanently delete a feature request |
| `beamer_list_feature_request_comments` | GET `/requests/{featureRequestId}/comments` | read | List comments on a feature request |
| `beamer_count_feature_request_comments` | GET `/requests/{featureRequestId}/comments/count` | read | Count comments on a feature request |
| `beamer_get_feature_request_comment` | GET `/requests/{featureRequestId}/comments/{commentId}` | read | Get one comment on a feature request |
| `beamer_create_feature_request_comment` | POST `/requests/{featureRequestId}/comments` | write | Add a comment to a feature request on behalf of an end user |
| `beamer_delete_feature_request_comment` | DELETE `/requests/{featureRequestId}/comments/{commentId}` | ⚠️ destructive | Permanently delete a comment on a feature request |
| `beamer_list_feature_request_votes` | GET `/requests/{featureRequestId}/votes` | read | List the votes on a feature request (who voted and when) |
| `beamer_count_feature_request_votes` | GET `/requests/{featureRequestId}/votes/count` | read | Count the votes on a feature request |
| `beamer_get_feature_request_vote` | GET `/requests/{featureRequestId}/votes/{voteId}` | read | Get one vote on a feature request |
| `beamer_create_feature_request_vote` | POST `/requests/{featureRequestId}/votes` | write | Register a vote on a feature request on behalf of an end user |
| `beamer_delete_feature_request_vote` | DELETE `/requests/{featureRequestId}/votes/{voteId}` | ⚠️ destructive | Permanently delete a vote on a feature request |
| `beamer_list_users` | GET `/users` | read | Query users tracked by Beamer Analytics (Beamer Scale plan only) |
| `beamer_create_user` | POST `/users` | write | Create a user in Beamer (Beamer Scale plan and up) |
| `beamer_update_users` | PUT `/users` | write | Update the users matching matchUserId / matchBeamerId / matchUserEmail with the given fields (Beamer Scale plan and up) |
| `beamer_delete_users` | DELETE `/users` | ⚠️ destructive | Permanently delete users from Beamer (Beamer Scale plan and up) |
| `beamer_list_nps_responses` | GET `/nps` | read | List NPS survey responses (score and feedback) |
| `beamer_count_nps_responses` | GET `/nps/count` | read | Count NPS responses |
| `beamer_check_nps` | GET `/nps/check` | read | Check whether the NPS survey should be shown to a given user right now |
| `beamer_send_nps_email` | POST `/nps/email` | write | Email the NPS survey to a user |
| `beamer_get_nps_link` | GET `/nps/link` | read | Generate a single-use NPS survey link for a user |
| `beamer_invite_team_member` | POST `/team` | write | Invite someone to the Beamer account with a role |
| `beamer_update_team_member` | PUT `/team` | write | Change the role of a Beamer team member |
| `beamer_remove_team_member` | DELETE `/team` | ⚠️ destructive | Remove a member from the Beamer account |
| `beamer_delete_user_data` | DELETE `/privacy` | ⚠️ destructive | Permanently delete ALL data of a user: feedback (comments, reactions, NPS) and analytics (views, clicks) |
Behaviours worth knowing:
- **Analytics.** Reading posts counts as a *view* in Beamer Analytics unless you pass
`saveViews=false`. The model is told to do this for reporting reads.
- **Unread posts.** `beamer_list_unread_posts` marks posts as read for that user unless you pass
`markAsRead=false`.
- **Deletes are permanent.** For posts, prefer `beamer_update_post` with `archive=true`.
- **`beamer_update_users`** takes `matchUserId` / `matchBeamerId` / `matchUserEmail` to pick which
users to update. The other fields are the new values.
- **Translations.** On posts and feature requests, `title`, `content`, `language`, `linkUrl` and
`linkText` are parallel arrays, one entry per translation.
## Configuration
| Variable | Default | Description |
|---|---|---|
| `PORT` | `3000` | HTTP port |
| `HOST` | all interfaces (IPv4 + IPv6) | Bind address |
| `BEAMER_MCP_READ_ONLY` | `0` | `1` registers only read-only tools, for every request |
| `BEAMER_API_KEY` | — | Required for stdio. Over HTTP it is an optional fallback for requests without a key. Leave it empty on a public deployment |
| `BEAMER_API_BASE_URL` | `https://api.getbeamer.com/v0` | Override the API base URL (testing) |
Per request (HTTP), read-only mode can also be turned on with `?readonly=1` in the URL or the
`X-Beamer-Read-Only: 1` header.
### Endpoints
| Method | Path | Description |
|---|---|---|
| `POST` | `/mcp` | MCP endpoint (key in the `Authorization` or `Beamer-Api-Key` header) |
| `POST` | `/mcp/<key>` | MCP endpoint with the key in the path (claude.ai, ChatGPT) |
| `POST` | `/mcp?api_key=<key>` | MCP endpoint with the key in the query string |
| `GET` | `/health` | Health check, `{"status":"ok"}` |
| `GET` | `/` | Server info (no secrets) |
The server is **stateless** (Streamable HTTP with JSON responses, no sessions), so it scales
horizontally with no sticky sessions.
## Self-hosting
### Docker Compose
```bash
git clone https://github.com/ncaves/beamer-mcp.git && cd beamer-mcp
docker compose up -d
```
Put it behind HTTPS. claude.ai and ChatGPT require a public `https://` URL.
### Coolify
1. **+ New → Public Repository** → `https://github.com/ncaves/beamer-mcp`, branch `main`.
2. **Build pack**: `Dockerfile`. **Ports exposes**: `3000`.
3. **Domain**: `https://beamer-mcp.example.com:3000`. The `:3000` tells Coolify's proxy which
container port to route to. The public URL stays on 443.
4. Optional environment variables: `BEAMER_MCP_READ_ONLY=1`.
5. **Deploy**. Coolify uses the image's `HEALTHCHECK` against `/health`.
### Other platforms
Any platform that runs a Dockerfile works (Fly.io, Render, Railway, Cloud Run...). Expose port
`3000` and use `/health` as the health check path.
## Security
- **Keys are not stored or logged.** Each request builds its own server instance with the key it
brings, and the instance is discarded when the response ends.
- **Keys in URLs** (`/mcp/<key>`) are convenient for claude.ai and ChatGPT, but URLs can end up in
proxy access logs and browser history. Use the `Authorization` header whenever your client
supports it. Keep access logs off on your reverse proxy, and rotate the key in Beamer if a URL
leaks.
- **Least privilege.** Create a Beamer API key with only the permissions you need. Use
`?readonly=1` or `BEAMER_MCP_READ_ONLY=1` when the assistant only needs to read.
- **Prompt injection.** Comments, feature requests and NPS feedback are written by your end users.
An assistant reading them could find instructions planted there. Keep confirmation on for write
tools.
- **Quotas.** Each tool call is one Beamer API request and counts toward your monthly quota
(Free 1,000 · Starter 2,000 · Pro 20,000 · Scale 100,000).
Found a vulnerability? Please open a private
[security advisory](https://github.com/ncaves/beamer-mcp/security/advisories/new) rather than a
public issue.
## Development
```bash
npm install
npm run dev # tsc --watch
npm test # builds, then runs end-to-end tests against a fake Beamer API
```
Layout:
```
src/
beamer.ts HTTP client for the Beamer API (auth header, errors)
tools.ts Declarative catalog: one entry per endpoint (path, query, body, annotations)
server.ts Builds the MCP server from the catalog
http.ts Streamable HTTP entry point (Express, stateless)
stdio.ts stdio entry point
test/
http.test.mjs
```
To add or fix an endpoint, edit its entry in `src/tools.ts`. The server, schemas and
annotations are generated from it.
Contributions are welcome: open an issue or a pull request. Please run `npm test` first.
## License
[MIT](LICENSE) © Nicolás Cuevas. Not affiliated with Beamer.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues