fmcp
by LAPSrj
README.md
# fmcp
An MCP (Model Context Protocol) server **and CLI** for searching [Fellow](https://fellow.ai) content: meeting notes, recording transcripts, AI meeting summaries, and action items. It lets AI assistants (or you, from the terminal) find what was said or written in a meeting and read it in full. It is read-only.
## Features
- **Search** across note text, transcripts, AI summaries, and action items, with quoted phrases and case- and accent-insensitive matching
- **Notes**: list with filters, read the full content as markdown
- **Recordings**: list with filters, read the AI notes and the speaker-labelled transcript (or a time slice of it)
- **Action items**: list by scope, completion, and date, read one
- **CLI**: every MCP tool is also a CLI subcommand, generated from the same registry
- **Starts without credentials**: until the key is set, every tool answers with the commands that set it, and a key written later works without a restart
## Tools
| Tool | Description |
|---|---|
| `whoami` | Show the user and workspace the key belongs to |
| `search` | Find words or phrases in notes, transcripts, AI summaries, and action items |
| `list_notes` | List notes with filters (title, dates, channel, event, attendees) |
| `get_note` | Read a note's details and full content |
| `list_recordings` | List recordings with filters (title, dates, channel, event) |
| `get_recording` | Read a recording's AI notes and transcript, optionally a time slice |
| `list_action_items` | List action items by scope, completion, AI-detected, dates; sortable |
| `get_action_item` | Read one action item |
### How search works
Fellow's API has no full-text search. Its list endpoints filter only by title, dates, channel, calendar event, and attendees. `search` sends those filters to Fellow, pages through the most recent matching records (`max_scan` per type, default 100), and matches the query locally:
- **Notes**: the title and the note content
- **Recordings**: the title, the AI summary sections, and every transcript segment
- **Action items**: the text
A record matches when it contains all the terms (`mode: any` for at least one). Each term matches the start of a word, so "delay" finds "delayed" but "art" doesn't find "start". Results are ranked by how many terms matched and how often, then by date. Each result has up to 3 snippets labelled by where they were found, such as `transcript [12:04] Sam Agent: …`, so you can open the recording with `get_recording --start_seconds 700` to read around it.
The output always ends with how many records of each type were scanned and whether older ones exist that weren't searched. To reach older meetings, narrow with `since`/`until` or `title`, or raise `max_scan`. Each 50 records costs one API request, and Fellow allows 3 requests per second and 10,000 per day per key. The client spaces requests to stay under the per-second limit, and retries a 429 or a 5xx (Fellow occasionally returns a one-off 500 on a page of transcripts).
`title` matches any part of the meeting title, case-insensitive ("weekly sync" also finds "Bi Weekly Syncs"). `since`/`until` filter on when the record was created. Fellow creates a meeting's note about 20 minutes before it starts, so for notes and recordings that is close to the meeting date.
Filters that only exist for some types limit the default types: `attendees` searches notes only, and `title`, `channel_id`, and `event_guid` skip action items. A date-only `until` covers the whole day.
## Setup
### Prerequisites
- [Bun](https://bun.sh) runtime
- A Fellow API key: Fellow → User settings → Developer API → generate a key (shown once). If the section is missing, a workspace admin has to enable the API under Workspace settings → Security.
- Your workspace subdomain: `acme` for `https://acme.fellow.app`
### Install & build
```bash
bun install
bun run build
```
`dist/index.js` is both the MCP server (no arguments, stdio transport) and the CLI (any arguments).
### Credentials
fmcp authenticates with a Fellow Developer API key instead of OAuth, because you create the key once and Fellow's docs don't give it an expiry, so there's no login to repeat. The key sees only what its owner can see in Fellow. Fellow also runs an official hosted MCP server at `https://fellow.app/mcp` (OAuth, admin-enabled), and fmcp is an API-key alternative that also works from the shell.
The API key resolves from the first source that has it:
1. `FELLOW_API_KEY` environment variable
2. `FELLOW_API_KEY_FILE` environment variable (path to a file holding the key)
3. Default credential file `~/.config/fellow-mcp/api-key` (mode `0600`)
The subdomain resolves the same way: `FELLOW_SUBDOMAIN`, `FELLOW_SUBDOMAIN_FILE`, then `~/.config/fellow-mcp/subdomain`. It accepts `acme`, `acme.fellow.app`, or the full URL, and refuses anything that isn't a `*.fellow.app` host, so the key can't be sent elsewhere.
The recommended setup is to write both files once:
```bash
mkdir -p -m 700 ~/.config/fellow-mcp
install -m 600 /dev/stdin ~/.config/fellow-mcp/api-key # paste the key, press Enter, then Ctrl-D
printf %s 'acme' > ~/.config/fellow-mcp/subdomain
chmod 600 ~/.config/fellow-mcp/subdomain
```
`install` reads the key from the terminal until Ctrl-D ends the input, so the key stays out of the command line and the shell history, and the file is mode `0600` from the start. If you paste the key without pressing Enter, press Ctrl-D twice.
Or put `FELLOW_API_KEY` and `FELLOW_SUBDOMAIN` in the `env` block of your gitignored `.mcp.json`.
Until both values are set, the server still starts, and every tool answers with the commands above. It reads the files on every call, so you don't need to restart it after writing them.
### Add to an MCP client
```json
{
"mcpServers": {
"fellow": {
"command": "bun",
"args": ["/path/to/fmcp/dist/index.js"]
}
}
}
```
The server key is `fellow`, so the tools are `mcp__fellow__*`. Then ask things like:
- "What did we decide about the launch date in last week's meetings?"
- "Find where Sam Agent mentioned the pricing page in October"
- "What are my open action items?"
- "Summarize the transcript of the client call on the 15th"
## CLI mode
```bash
bun dist/index.js <tool> [--param value] # or: bun run cli <tool> ...
bun dist/index.js tools # list tools
bun dist/index.js help search # a tool's parameters
```
Parameters are `--name value` or `--name=value`. Booleans take `--flag` / `--no-flag`. Array parameters take a repeated flag or a comma-separated list. `search` takes the query as bare arguments, and `get_note`, `get_recording` and `get_action_item` take the id the same way. In `search`, an argument you quote in the shell is a phrase: `search figma "edit seat"` finds "edit seat" together.
```bash
bun dist/index.js whoami
bun dist/index.js search '"launch date" july' --since 2026-09-01
bun dist/index.js search orçamento --types notes,recordings --max_scan 300
bun dist/index.js search roadmap --title "Weekly sync" --until 2026-10-15
bun dist/index.js get_recording abc123 --no-ai_notes --start_seconds 600 --end_seconds 900
bun dist/index.js list_action_items --scope assigned_to_me --completed false --order_by due_date
```
`tools` and `help` work without credentials. To call it as `fellow-mcp` from anywhere, add an alias to your shell profile:
```bash
alias fellow-mcp='bun /path/to/fmcp/dist/index.js'
```
## Configuration
| Variable | Default | Description |
|---|---|---|
| `FELLOW_API_KEY` | – | Your Fellow Developer API key. Required unless the key file exists. |
| `FELLOW_API_KEY_FILE` | `~/.config/fellow-mcp/api-key` | Path to a file holding the key |
| `FELLOW_SUBDOMAIN` | – | Workspace subdomain (`acme` for `acme.fellow.app`). Required unless the subdomain file exists. |
| `FELLOW_SUBDOMAIN_FILE` | `~/.config/fellow-mcp/subdomain` | Path to a file holding the subdomain |
| `FELLOW_MAX_RETRY_DELAY_MS` | `30000` | Max ms to wait before a retry |
| `FELLOW_MAX_RETRIES` | `3` | Max retries on a 429 or 5xx response |
## Development
```bash
bun run dev # run the MCP server from source
bun run cli whoami # run a tool from source
bun test # unit tests: CLI parsing, client, search
bun run build # type-check with tsc, then bundle to dist/index.js
```
Adding a tool is one `tool(name, description, shape, handler)` call in `src/index.ts`, which registers it with the MCP server and makes it a CLI subcommand.
| File | What's in it |
|---|---|
| `src/index.ts` | Config resolution, the tool registry, every tool definition |
| `src/fellow-client.ts` | HTTP, request spacing, retries, the subdomain check |
| `src/search.ts` | Query parsing, local matching, ranking, snippets |
| `src/format.ts` | The compact text each tool returns |
| `src/cli.ts` | CLI dispatcher |
fmcp wraps the [Fellow Developer API](https://developers.fellow.ai/reference/introduction) at `https://{subdomain}.fellow.app/api/v1`, authenticated with the `X-API-KEY` header.
## License
[PolyForm Strict License 1.0.0](LICENSE.md)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues