outline-mcp
Connects MCP clients to Outline workspaces, enabling agents to safely read, update, and manage documentation through structured tools.
README
outline-mcp
A production-focused MCP (stdio) server for Outline.
Use it from MCP clients (Codex, Claude Desktop, Cursor, etc.) via npm without cloning this repo.
What Is Outline?
Outline is a collaborative knowledge base and documentation platform for teams. It is commonly used for internal docs, runbooks, product specs, onboarding guides, and shared process playbooks.
outline-mcp connects MCP clients to Outline workspaces so agents can safely read, update, and manage this knowledge through structured tools.
Install From npm
Package:
npm i -g @sigee-min/outline-mcp
Run:
outline-mcp
Or run without global install:
npx -y @sigee-min/outline-mcp
MCP Client Config (Copy/Paste)
{
"mcpServers": {
"outline": {
"command": "npx",
"args": ["-y", "@sigee-min/outline-mcp"],
"env": {
"OUTLINE_API_KEY": "your_api_key",
"OUTLINE_BASE_URL": "https://app.getoutline.com",
"OUTLINE_ALLOWED_ACTIONS": "read,write,delete"
}
}
}
}
Environment Guides
<details> <summary>Outline Cloud (recommended)</summary>
Use this for app.getoutline.com workspaces.
OUTLINE_API_KEY=your_api_key
OUTLINE_BASE_URL=https://app.getoutline.com
OUTLINE_ALLOWED_ACTIONS=read,write,delete
</details>
<details> <summary>Self-hosted Outline</summary>
Use your self-hosted endpoint.
OUTLINE_API_KEY=your_api_key
OUTLINE_BASE_URL=https://outline.your-company.internal
OUTLINE_ALLOWED_ACTIONS=read,write,delete
</details>
<details> <summary>Read-only agent (safe mode)</summary>
Use this when agents must never mutate content.
OUTLINE_API_KEY=your_api_key
OUTLINE_BASE_URL=https://app.getoutline.com
OUTLINE_ALLOWED_ACTIONS=read
</details>
<details> <summary>Read/write without delete</summary>
Use this when agents can draft/edit but must not remove resources.
OUTLINE_API_KEY=your_api_key
OUTLINE_BASE_URL=https://app.getoutline.com
OUTLINE_ALLOWED_ACTIONS=read,write
</details>
<details> <summary>Lease backed by data attributes (multi-agent)</summary>
Use this for cross-process lease coordination.
OUTLINE_API_KEY=your_api_key
OUTLINE_BASE_URL=https://app.getoutline.com
OUTLINE_ALLOWED_ACTIONS=read,write,delete
OUTLINE_LEASE_STRATEGY=data_attribute
OUTLINE_LEASE_ATTRIBUTE_ID=your_data_attribute_id
OUTLINE_LEASE_DEFAULT_TTL_SECONDS=600
OUTLINE_LEASE_MAX_TTL_SECONDS=7200
</details>
Supported Features (At a Glance)
| Area | What you can do | Main MCP tools | Required action |
|---|---|---|---|
| Collections | List, create, update, delete collections | list_collections, create_collection, update_collection, delete_collection |
read, write, delete |
| Documents | Search/read/create/update/move/delete documents | search_documents, read_document, create_document, update_document, move_document, delete_document |
read, write, delete |
| Document Insights | Resolve IDs, structure, backlinks, and markdown export | get_collection_structure, get_document_id_from_title, get_document_backlinks, export_document |
read |
| Document Lifecycle | Archive, unarchive, restore, and inspect archived/trash docs | archive_document, unarchive_document, restore_document, list_archived_documents, list_trash |
read, write |
| Batch Operations | Execute create/update/move/archive/delete over many docs | batch_create_documents, batch_update_documents, batch_move_documents, batch_archive_documents, batch_delete_documents |
write, delete |
| AI Search | Ask natural-language questions over docs in Outline | ask_ai_about_documents |
read |
| Safe Concurrency | Prevent blind overwrite on concurrent edits | safe_update_document |
write |
| Templates | Reuse template workflows | list_templates, create_template_from_document, create_document_from_template |
read, write |
| Comments | Full comment lifecycle | list_comments, get_comment, create_comment, update_comment, delete_comment |
read, write, delete |
| Memberships | Manage user/group access for docs and collections | list_*_memberships, add_*, remove_* |
read, write |
| Audit & Revisions | Track activity and revisions | list_events, list_revisions, get_revision |
read |
| Export & File Ops | Run exports and fetch artifact status/URL | export_collection, export_all_collections, list_file_operations, get_file_operation, download_file_operation |
read |
| MCP Resources | Read via URI templates without tool calls | outline://collection/{id}, outline://collection/{id}/tree, outline://collection/{id}/documents, outline://document/{id}, outline://document/{id}/backlinks |
read |
| Lease Control | Acquire/renew/release document lease for agent coordination | acquire_document_lease, renew_document_lease, release_document_lease, get_active_document_lease |
write |
Supported Outline APIs (Mapped)
| API Group | Outline endpoints used by outline-mcp |
|---|---|
| Collections | collections.list, collections.info, collections.create, collections.update, collections.delete, collections.documents |
| Collection Memberships | collections.memberships, collections.group_memberships, collections.add_user, collections.remove_user, collections.add_group, collections.remove_group |
| Documents | documents.info, documents.search, documents.list, documents.create, documents.update, documents.move, documents.delete, documents.archive, documents.unarchive, documents.restore, documents.archived, documents.export, documents.answerQuestion |
| Templates | documents.templatize, documents.list (template=true), documents.create (templateId) |
| Document Memberships | documents.users, documents.memberships, documents.group_memberships, documents.add_user, documents.remove_user, documents.add_group, documents.remove_group |
| Comments | comments.list, comments.info, comments.create, comments.update, comments.delete |
| Events/Revisions | events.list, revisions.list, revisions.info |
| Export/File Operations | collections.export, collections.export_all, fileOperations.list, fileOperations.info, fileOperations.redirect |
Key Environment Variables
| Variable | Default | Description |
|---|---|---|
OUTLINE_API_KEY |
none (required) | Outline API token |
OUTLINE_BASE_URL |
https://app.getoutline.com |
Cloud or self-hosted endpoint |
OUTLINE_ALLOWED_ACTIONS |
read,write,delete |
Allowed server actions |
OUTLINE_REQUEST_TIMEOUT_MS |
15000 |
API timeout in milliseconds |
OUTLINE_RETRY_COUNT |
2 |
Retry count for 429/5xx |
OUTLINE_ENABLE_CAPABILITY_PROBE |
true |
Probe optional endpoints at startup |
OUTLINE_LEASE_STRATEGY |
auto |
auto | memory | data_attribute |
OUTLINE_LEASE_ATTRIBUTE_ID |
none | Required for data_attribute lease strategy |
OUTLINE_LEASE_DEFAULT_TTL_SECONDS |
600 |
Default lease TTL |
OUTLINE_LEASE_MAX_TTL_SECONDS |
7200 |
Maximum lease TTL |
Local Development (Monorepo)
git clone <repo-url>
cd outline-mcp
pnpm install
pnpm --filter @sigee-min/outline-mcp build
pnpm --filter @sigee-min/outline-mcp dev
Testing
pnpm test
pnpm typecheck
pnpm build
pnpm e2e:mcp
E2E notes:
- Loads
.env,.env.local,.env.e2efrom root andapps/mcp - If
OUTLINE_E2E_COLLECTION_IDis not set, it creates a temporary collection and cleans it up automatically
CI E2E notes:
.github/workflows/ci.ymlruns MCP inspector E2E as a separate job whenOUTLINE_API_KEYsecret exists- Default CI mode is read-focused (
OUTLINE_E2E_RUN_WRITE=false), configurable via GitHub Actions variable - Recommended GitHub settings:
- Secret:
OUTLINE_API_KEY(required) - Variables (optional):
OUTLINE_BASE_URL,OUTLINE_E2E_RUN_WRITE,OUTLINE_E2E_COLLECTION_ID,OUTLINE_E2E_MEMBER_COLLECTION_ID,OUTLINE_E2E_MEMBER_USER_ID,OUTLINE_E2E_MEMBER_GROUP_ID
- Secret:
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。