@doccler/mcp-server
v1.1.0
Published
Doccler MCP Server - Connect your IDE to your documentation platform
Maintainers
Readme
Doccler MCP Server
🚀 Connect your IDE to Doccler - Use AI-powered documentation directly from your development environment.
What is MCP?
The Model Context Protocol (MCP) is an open standard that allows AI assistants (like Claude, Cursor, VS Code with AI extensions) to connect to external tools and data sources. Doccler's MCP server enables you to:
- Query your documentation as a single source of truth
- Create documentation directly from your IDE
- Search documentation with semantic search
- Generate documentation from code using AI
- Publish/unpublish documents
- Organize documents into spaces
Quick Start
1. Get Your Doccler API Key
- Log in to Doccler
- Go to Settings → API Keys
- Click Create New API Key
- Copy the key (it's only shown once!)
2. Configure Your IDE
Choose your IDE and add the configuration:
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"doccler": {
"command": "npx",
"args": ["-y", "@doccler/mcp-server@latest"],
"env": {
"DOCCLER_API_KEY": "doccler_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
}
}
}
}Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"doccler": {
"command": "npx",
"args": ["-y", "@doccler/mcp-server@latest"],
"env": {
"DOCCLER_API_KEY": "doccler_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
}
}
}
}VS Code / Antigravity
Add to your MCP settings:
{
"mcp": {
"servers": {
"doccler": {
"command": "npx",
"args": ["-y", "@doccler/mcp-server@latest"],
"env": {
"DOCCLER_API_KEY": "doccler_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
}
}
}
}
}3. Restart Your IDE
After adding the configuration, restart your IDE. The Doccler MCP server will be downloaded and started automatically.
Alternative: Global Installation
If you prefer to install globally instead of using npx:
npm install -g @doccler/mcp-serverThen configure your IDE with:
{
"mcpServers": {
"doccler": {
"command": "doccler-mcp",
"env": {
"DOCCLER_API_KEY": "doccler_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
}
}
}
}Available Tools
| Tool | Description |
|------|-------------|
| hello_doccler | Verify your connection to Doccler |
| list_docs | List all your documents with optional filters |
| search_docs | Search your documentation (keyword + semantic) |
| get_doc | Get the content of a specific document |
| create_doc | Create new documentation with optional space |
| update_doc | Update an existing document by slug or title |
| publish_doc | Publish or unpublish a document |
| list_spaces | List all available spaces |
| generate_doc | Generate documentation from code using AI |
Usage Examples
List Documents
"List all my documents"
"Show my published documents only"
"List documents in the API space"Search Documentation
"Search my documentation for authentication"
"Find docs about API endpoints"Create Documentation
"Create documentation titled 'Getting Started' about how to install the app"
"Create a doc in the API space explaining the user endpoint"Update Documentation
"Update the document 'getting-started' with new installation instructions"
"Change the title of my-api-guide to 'API Reference v2'"Generate from Code
"Generate documentation for this code: [paste your code]"
"Document this function with examples"Publish/Unpublish
"Publish the document with slug 'getting-started'"
"Unpublish my-api-guide"Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| DOCCLER_API_KEY | Your Doccler API key | (required) |
| DOCCLER_API_URL | API URL (for self-hosted) | https://doccler.app/api |
Note:
DOCCLER_API_URLis only needed for self-hosted instances or development. Production users can omit it.
Troubleshooting
"API Key not configured"
Make sure DOCCLER_API_KEY is set in your IDE's MCP configuration.
"Unauthorized" errors
- Check that your API key is valid
- Go to Settings → API Keys in Doccler to verify
- Create a new key if needed
Server not starting
- Ensure Node.js 18+ is installed
- Try running manually:
npx @doccler/mcp-server - Check your IDE's MCP logs
Support
- Documentation: doccler.app/en/docs
- Email: [email protected]
License
MIT © Doccler
