Section Anything

v0.1.0
io.github.Omniwot/section-anything Checked 1 day ago Published 1 month ago

A PDF's real sections for agents: heading tree, pages and section text.

Values you need

VariableWhat it is
OPENAI_API_KEYoptional secret Only for the paid quick and standard modes with OpenAI models
ANTHROPIC_API_KEYoptional secret Only for the paid modes with a Claude model

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add section-anything -- uvx section-anything-mcp==0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "section-anything": {
      "args": [
        "section-anything-mcp==0.1.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "section-anything": {
      "args": [
        "section-anything-mcp==0.1.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "section-anything": {
      "args": [
        "section-anything-mcp==0.1.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.section-anything]
command = "uvx"
args = ["section-anything-mcp==0.1.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: outline_pdf, section_pdf, read_sections, estimate_cost.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json