Skip to main content
Glama
README.md
# better-outline-mcp

A Model Context Protocol (MCP) server for [Outline](https://www.getoutline.com), with tools that are designed for Large Language Model (LLM) agents.

Status: work in progress. The HTTP layer and the authentication are complete. The tools are not implemented yet.

## How it works

- The server runs next to a self-hosted Outline instance and replaces the `/mcp` path of that instance.
- Authentication does not change. Outline stays the OAuth authorization server. This server checks each bearer token with the Outline API (`auth.info`) and uses the same token for all API calls, so each user keeps their own permissions. The server stores no credentials.
- The MCP server that is built into Outline stays available on a second path (default `/mcp0`).

## Configuration

| Variable | Required | Default | Meaning |
|---|---|---|---|
| `OUTLINE_PUBLIC_URL` | yes | | Public origin of the Outline instance |
| `OUTLINE_INTERNAL_URL` | no | `OUTLINE_PUBLIC_URL` | Base URL that this server uses to call Outline |
| `MCP_PATH` | no | `/mcp` | Path of this server |
| `LEGACY_MCP_PATH` | no | `/mcp0` | Path that proxies to the built-in Outline MCP server. An empty value disables the proxy |
| `PORT` | no | `8787` | Listen port |
| `MAX_BODY_BYTES` | no | `16777216` | Largest request body that the server reads |

## Development

```bash
npm install
npm run typecheck
npm test
npm run build
```

Live tests call a real Outline instance. See [test/live/README.md](test/live/README.md).

## License

MIT