Skip to main content

Doclayer MCP Server

A Model Context Protocol (MCP) server that enables developers using Claude Code or Cursor to integrate with Doclayer within 5 minutes.

Features

  • CLI-like Tools: Upload documents, search, manage projects, and more
  • Integration Guidance: Get personalized advice on how to integrate Doclayer
  • Custom Template Creation: Create and validate custom agent templates
  • Code Examples: Access ready-to-use code snippets in multiple languages

Quick Start

Installation

# Via pip
pip install doclayer-mcp

# Or via uvx (recommended for MCP)
uvx doclayer-mcp

Configure Claude Code

Add to ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "doclayer": {
      "command": "uvx",
      "args": ["doclayer-mcp"],
      "env": {
        "DOCLAYER_API_KEY": "your-api-key"
      }
    }
  }
}

Configure Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "doclayer": {
      "command": "uvx",
      "args": ["doclayer-mcp"]
    }
  }
}

Get Your API Key

  1. Sign up at https://app.doclayer.ai
  2. Go to Settings > API Keys
  3. Create a new API key
  4. Set the environment variable or use the setup_auth tool

Available Tools

Tool Description
setup_auth Configure API credentials
check_connection Verify API connectivity
upload_document Upload a document for processing
get_document_status Check processing status
get_document_extractions Retrieve extraction results
search_documents Vector search across documents
list_templates List available agent templates
get_template Get template details
list_projects List your projects
create_project Create a new project
generate_api_key Create new API key
create_custom_template Scaffold a new template
validate_template Validate template manifest

Available Resources

Resource URI Description
doclayer://config/current Current configuration
doclayer://api/endpoints API endpoint reference
doclayer://examples/quickstart Code examples
doclayer://schema/manifest Template manifest schema

Available Prompts

Prompt Description
quickstart 5-minute integration guide
integration-advisor Analyze your project and suggest integration
template-creator Guide to create custom templates
troubleshoot Diagnose common issues
best-practices Integration best practices

5-Minute Integration Flow

  1. Install (30 seconds)

    pip install doclayer-mcp
    
  2. Configure (30 seconds)

    • Add to your MCP config
    • Set DOCLAYER_API_KEY
  3. Restart your IDE (30 seconds)

  4. Use the quickstart prompt (3 minutes)

    • Ask Claude: "Use the quickstart prompt to help me integrate Doclayer"

Environment Variables

Variable Description Default
DOCLAYER_API_KEY Your Doclayer API key None
DOCLAYER_BASE_URL API base URL https://api.doclayer.ai
DOCLAYER_TENANT_ID Tenant/organization ID None
DOCLAYER_NO_KEYRING Disable system keyring false

Development

Setup

cd mcp-server
pip install -e ".[dev]"

Run Tests

pytest

Run Locally

python -m doclayer_mcp.server

License

MIT License - see LICENSE file for details.

Support

Metadata

Release files for doclayer-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doclayer-mcp 0.1.0
File Size Uploaded Provenance
doclayer_mcp-0.1.0.tar.gz 22.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for doclayer-mcp 0.1.0
File Interpreter ABI Platform
doclayer_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 43.7 kB

Release files / doclayer_mcp-0.1.0.tar.gz

Download URL doclayer_mcp-0.1.0.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b2893f00cc25683dd397ea6b79d533487bbebae937d9f63f51ee53b9a75e277c
BLAKE2b-256 checksum
How to use checksums
5df5caa80ab45403a8e9a899a47cc4b16cf405e370726d40db0bd0a52939997c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 3, 2026.

Transparency log

Release files / doclayer_mcp-0.1.0-py3-none-any.whl

Download URL doclayer_mcp-0.1.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23602ab3fa480722c5bdfe06ad20deae2a5f1200a529463dcc18aa70987565d9
BLAKE2b-256 checksum
How to use checksums
a0040283fd64ee56146606eb2c162631a188fd07dba69ec7d8e6332191d173ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 3, 2026.

Transparency log

Security for doclayer-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for doclayer_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page