Metadata-Version: 2.4
Name: section-anything-mcp
Version: 0.1.0
Summary: MCP server for Section Anything: a PDF's real sections (heading tree, pages, text) as tools for agents.
Author: The Section Anything Authors
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/Omniwot/section-anything/tree/main/packages/section-anything-mcp
Project-URL: Repository, https://github.com/Omniwot/section-anything
Project-URL: Issues, https://github.com/Omniwot/section-anything/issues
Keywords: mcp,model context protocol,pdf,sections,headings,rag,agents
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Text Processing :: General
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: section-anything[mcp]<0.2,>=0.1.6
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"
Dynamic: license-file

# section-anything-mcp

<!-- mcp-name: io.github.Omniwot/section-anything -->

The [Section Anything](https://github.com/Omniwot/section-anything) MCP server, packaged so that
MCP clients can start it with `uvx section-anything-mcp`. It installs `section-anything[mcp]` and
runs its server on stdio. Installing `section-anything[mcp]` yourself gives the same
`section-anything-mcp` command.

Tools (read-only): `section_pdf` (a PDF's heading tree: levels, parents, heading paths, pages,
character spans), `read_sections` (the text of chosen sections) and `estimate_cost` (what Quick
check and Standard would cost). Free mode by default: local, no model, $0.

```sh
claude mcp add --transport stdio section-anything -- uvx section-anything-mcp
```

Options: `--root DIR` (only read PDFs under DIR; repeatable) and `--max-usd` (the per-document cap
for paid modes; 0 keeps every run free). Paid modes read `OPENAI_API_KEY` or `ANTHROPIC_API_KEY`
from the server's environment. Section text is the document's content: treat it as data.

Apache-2.0. Documentation: the main repository's README, "Use from an agent".
