Labsco
HelicopterHelicopter logo

Outline MCP Server

β˜… 16

from HelicopterHelicopter

MCP server for the Outline knowledge base and document management tool.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

Outline MCP Server

A Model Context Protocol (MCP) server for Outline that enables reading and writing documents through the Outline API.

Features

  • Read Documents: Get individual documents, search, and list documents
  • Write Documents: Create, update, and delete documents
  • Collection Management: List and retrieve collection information
  • Full Text Search: Search across all documents in your Outline instance
  • Markdown Support: Create and edit documents with full Markdown formatting

Development

Project Structure

src/
β”œβ”€β”€ index.ts           # Main MCP server implementation
β”œβ”€β”€ outline-client.ts  # Outline API client

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run dev - Build and run the server
  • npm run watch - Watch for changes and rebuild
  • npm start - Run the compiled server

Building

npm run build

The compiled JavaScript will be output to the dist/ directory.

API Rate Limits

Be aware that Outline may have API rate limits. The server doesn't implement rate limiting internally, so you may need to handle this at the client level if you're making many requests.

Error Handling

The server includes comprehensive error handling and will return descriptive error messages for common issues like:

  • Missing or invalid API credentials
  • Network connectivity problems
  • Invalid document IDs
  • API rate limit errors

Security Notes

  • Store your API token securely using environment variables
  • Never commit your API token to version control
  • Consider using restricted API tokens with minimal required permissions
  • Be cautious when allowing others to use your MCP server as it has full access to your Outline instance

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.