Skip to main content

Unified document MCP — read, write, search, annotate any structured document

Project description

Precis

PyPI Python License

Unified document MCP — read, write, search, and annotate any structured document.

Four tools

search(query, top_k?, scope?)
get(id, grep?, depth?)
put(id, text?, mode?, tracked?, note?, link?)
move(id, after)

URI grammar

scheme:path[~selector][/view[/subview]]

Schemes

  • file: — on-disk files, extension determines handler (.docx, .tex, .md, .txt)
  • paper: — acatome paper store (pre-ingested PDFs)
  • todo: — task management with state machine

Examples

read('paper:')                              # list all papers
read('paper:miller2023foo')                 # overview + abstract
read('paper:miller2023foo/toc')             # structure
read('paper:miller2023foo~38')              # chunk 38
read('paper:miller2023foo/cite/bib')        # BibTeX citation
read('file:planning.docx')                  # table of contents
read('file:planning.docx~KR8M2')            # node by slug
put('file:planning.docx~KR8M2', text='Revised text.', mode='replace')

Output markers

=  verbatim (safe to quote)
~  derived (keywords/summary — not quotable)
%  annotation (user note/comment)

Installation

pip install precis-mcp            # core + markdown + plaintext + latex
pip install precis-mcp[word]       # + DOCX support
pip install precis-mcp[paper]      # + paper store support
pip install precis-mcp[all]        # everything

Plugin system

Register new schemes or file types via entry points:

[project.entry-points."precis.schemes"]
chem = "my_plugin:ChemHandler"

[project.entry-points."precis.file_types"]
".sdf" = "my_plugin:SDFParser"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

precis_mcp-3.0.0.tar.gz (72.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

precis_mcp-3.0.0-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

Details for the file precis_mcp-3.0.0.tar.gz.

File metadata

  • Download URL: precis_mcp-3.0.0.tar.gz
  • Upload date:
  • Size: 72.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for precis_mcp-3.0.0.tar.gz
Algorithm Hash digest
SHA256 6a36d29180879efa09212bcd94df07dfaa2e4244d96752e51848eb40b629fbc8
MD5 2b951f636280bec5288afefad984651d
BLAKE2b-256 33115b5cf33551f89559a835f112c5f5f4e88cb9d45422c25dd624cbc721b979

See more details on using hashes here.

Provenance

The following attestation bundles were made for precis_mcp-3.0.0.tar.gz:

Publisher: publish.yml on retospect/precis-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file precis_mcp-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: precis_mcp-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 63.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for precis_mcp-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ceb5c44478f3078d74a04dab901b7d0c0bbdc6ac4a7b91535d0adaa80aaa41fd
MD5 ef045e1bbe1ffc486c1fa813db985abf
BLAKE2b-256 71dc7f398a591fe653dd550037c5916b3489cd4dd1f581cfe75c509c33c9cce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for precis_mcp-3.0.0-py3-none-any.whl:

Publisher: publish.yml on retospect/precis-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page