MCP server for compressed structured context on .docx and .tex documents
Reason this release was yanked:
use precis-mcp instead
Project description
precis-mcp
A Model Context Protocol (MCP) server that gives LLMs compressed, structured context for .docx and .tex documents. It maintains a heading tree with RAKE keyword summaries so the LLM can navigate and edit documents without flooding context.
Features
- 5 tools —
activate,toc,get,put,move - Dual addressing — 5-char content-hash slugs + positional heading paths
- RAKE keyword extraction — stateless, zero-dependency precis generation (<5ms)
- DOCX citations —
[@key]round-trip with styled hyperlinks and bibliography entries - Track changes —
put()writes Word revision markup by default - LaTeX support —
\input/\includeresolution,\label{}aliases,.bibparsing - Atomic I/O — every call reads fresh from disk, no stale state
Installation
uv pip install -e ".[dev]"
Usage
Run as an MCP server:
precis
Or use with an MCP client:
from precis.tools import Session, activate, toc, get, put
session = Session()
await activate(session, "paper.docx")
await toc(session)
await get(session, id="KR8M2")
await put(session, id="KR8M2", text="Updated text.", mode="replace")
Configuration
~/.config/precis/precis.toml:
[precis]
author = "precis" # track-changes author name (DOCX only)
Testing
uv run python -m pytest tests/ -v
License
GPL-3.0-or-later — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file precis_mcp-0.2.0.tar.gz.
File metadata
- Download URL: precis_mcp-0.2.0.tar.gz
- Upload date:
- Size: 38.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b3fa49d9a8b7151427132c256ab9e839b6ade6c6e69a91eb1eaa821bc094f2e
|
|
| MD5 |
96e20fc6707dd787c6aa8ce034b0080c
|
|
| BLAKE2b-256 |
7aa6976dc6ff7ec542ceae32a009f1872c10c7af2ee130824b6a974b31ba1989
|
Provenance
The following attestation bundles were made for precis_mcp-0.2.0.tar.gz:
Publisher:
publish.yml on retospect/precis-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
precis_mcp-0.2.0.tar.gz -
Subject digest:
6b3fa49d9a8b7151427132c256ab9e839b6ade6c6e69a91eb1eaa821bc094f2e - Sigstore transparency entry: 1085546338
- Sigstore integration time:
-
Permalink:
retospect/precis-mcp@4e24d62e8473bfd262fa76acfb29e567af3f1c71 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/retospect
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4e24d62e8473bfd262fa76acfb29e567af3f1c71 -
Trigger Event:
release
-
Statement type:
File details
Details for the file precis_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: precis_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85d5666d0efef71f4fee9f038fb42e60816302eb1c2ad8fba1178ba8cfa7aa56
|
|
| MD5 |
e7618dbe0c20ff0beaaa4834163b4dc0
|
|
| BLAKE2b-256 |
da303976759ba553df1c9ba113466520e27f1edbd47ce1522f7feebd6978a67b
|
Provenance
The following attestation bundles were made for precis_mcp-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on retospect/precis-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
precis_mcp-0.2.0-py3-none-any.whl -
Subject digest:
85d5666d0efef71f4fee9f038fb42e60816302eb1c2ad8fba1178ba8cfa7aa56 - Sigstore transparency entry: 1085546393
- Sigstore integration time:
-
Permalink:
retospect/precis-mcp@4e24d62e8473bfd262fa76acfb29e567af3f1c71 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/retospect
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4e24d62e8473bfd262fa76acfb29e567af3f1c71 -
Trigger Event:
release
-
Statement type: