🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@docapi/mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docapi/mcp

MCP server for DocAPI — generate PDFs and screenshots via Claude Desktop, Cursor, and any MCP-compatible agent

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
42
2.44%
Maintainers
1
Weekly downloads
 
Created
Source

docapi-mcp

MCP server for DocAPI — generate PDFs and screenshots via Claude Desktop, Cursor, and any MCP-compatible agent.

Tools

ToolDescription
docapi_generate_pdfConvert HTML to PDF (full CSS: Grid, Flexbox, custom fonts)
docapi_capture_screenshotScreenshot a URL or HTML template — returns the image inline
docapi_check_creditsCheck remaining credits and USDC top-up address
docapi_register_agentRegister a new agent account programmatically

Get a free API key at docapi.co/signup — 100 calls/month, no credit card.

Connect (Claude Desktop / Cursor)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "docapi": {
      "url": "https://mcp.docapi.co/mcp",
      "headers": {
        "x-api-key": "pk_live_your_key_here"
      }
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Cursor: Settings → MCP Servers → add the same block.

Tool Reference

docapi_generate_pdf

{
  "html": "<h1 style='font-family:sans-serif'>Hello World</h1>",
  "format": "A4",
  "landscape": false,
  "margin_inches": 0.5,
  "print_background": true
}

Returns base64-encoded PDF. Ask Claude to save it to a file path on your machine.

docapi_capture_screenshot

{ "url": "https://mysite.com/blog/post", "width": 1200, "height": 630 }
{ "html": "<div style='background:#0f172a;color:white;padding:60px'><h1>My Post</h1></div>", "width": 1200, "height": 630 }

Returns an inline image you can view directly in Claude.

docapi_check_credits

{}

Returns credits remaining and USDC address (agent accounts only).

docapi_register_agent

{ "notify_email": "ops@yourcompany.com" }

Returns api_key, usdc_address, and Python/JS integration snippets with the credit monitoring loop.

Self-hosting

The server is deployed at https://mcp.docapi.co — no setup needed for most users.

To run your own instance:

git clone https://github.com/doc-api-llc/docapi-mcp
cd docapi-mcp
npm install && npm run build
PORT=3000 node dist/index.js   # HTTP (default)
TRANSPORT=stdio DOCAPI_KEY=pk_... node dist/index.js   # stdio

Deploy to Railway: set no env vars — each user authenticates with their own x-api-key header.

Health check: GET /health{ "status": "ok" }

Keywords

mcp

FAQs

Package last updated on 18 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts