Documentation

Claude Code

You can connect SmartPDF to Claude Code with the plugin (a single command) or with the claude mcp add command.

SmartPDF plugin

The plugin contains the MCP server and the smartpdf skill for files on your computer. Claude Code asks for the key during installation and saves it in the system’s secure storage.

/plugin marketplace add kirmoz1997/smartpdf-agents
/plugin install smartpdf@smartpdf

From the terminal: claude plugin marketplace add kirmoz1997/smartpdf-agents, then claude plugin install smartpdf@smartpdf --config api_key=sk_live_…. The skill for files on disk also needs the SMARTPDF_API_KEY variable with the same key. Source code: github.com/kirmoz1997/smartpdf-agents.

Without the plugin

It’s best to keep the key in an environment variable: Claude Code substitutes it when connecting, and it won’t end up in the settings.

Terminal
export SMARTPDF_API_KEY=sk_live_…   # key from your dashboard
claude mcp add --transport http smartpdf https://mcp.smartpdf.ru/mcp \
  --scope user --header 'Authorization: Bearer ${SMARTPDF_API_KEY}'
  • The single quotes are required: Claude Code substitutes the key from the variable when connecting, so it won’t end up in the settings.
  • To check, run claude mcp list: smartpdf ✓ connected.

Scope

  • --scope user — in all your projects (recommended);
  • --scope project — in the project’s .mcp.json file, which you can commit: the key in it stays a reference to the variable;
  • without --scope — only in the current project.

The same server in .mcp.json:

{
  "mcpServers": {
    "smartpdf": {
      "type": "http",
      "url": "https://mcp.smartpdf.ru/mcp",
      "headers": { "Authorization": "Bearer ${SMARTPDF_API_KEY}" }
    }
  }
}

Local files

Claude Code runs in the terminal, so it can upload files from your disk via the REST API itself — see Passing files.

This page for agents: Markdown · llms.txt