MCP server for managing patent application drafts
Project description
patentorney-mcp
An MCP server for managing patent application drafts. Built with FastMCP and designed for use with AI coding assistants (Windsurf, Claude Desktop, etc.).
Installation
pip install patentorney-mcp
Or with uvx (no install needed):
uvx patentorney-mcp
MCP Client Configuration
For Windsurf / Claude Desktop, add to your MCP config:
{
"mcpServers": {
"patentorney-mcp": {
"command": "uvx",
"args": ["patentorney-mcp"]
}
}
}
On first use, call set_root(path='/absolute/path/to/project') to point the server at the directory containing patent.yaml. All other tools will prompt for this if it hasn't been set.
Tools (8)
| Tool | Purpose |
|---|---|
set_root(path) |
Point at a patent project directory. Must be called first. |
guide(topic?) |
Usage guides. No args → index. |
claim(action, ...) |
Claims: add|get|update|remove|move|rename|tree |
figure(action, ...) |
Figures: add|get|update|remove|move|rename|list |
numeral(action, ...) |
Numerals: add|get|update|remove|lookup|rename|renumber|list |
prior_art(action, ...) |
Prior art & IDS: add|get|update|remove|list|ids_add|ids_list|ids_check |
glossary(action, ...) |
Glossary: add|get|update|remove|list |
export(target, ...) |
Status, validation & export: status|check|claims|drawings_description|claims_latex|drawings_latex|latex |
Any tool called before set_root() returns an error with a hint to call it. All errors include LLM-actionable hints.
Architecture
patent.yaml— single source of truth for structured data (claims, numerals, figures, glossary, prior art)sections/*.tex— prose sections edited directly;claims.texanddrawings-description.texare generated- Stable slug IDs — all entities use kebab-case slugs; presentation numbers computed from list order
- Dual addressing — tools accept slug or current number (e.g.,
claim("get", id="3")orclaim("get", id="mof-synthesis-method")) - File locking —
fcntl.flockfor safe concurrent access from multiple server instances - Structured claims — preamble + transitional + elements (each with numeral associations)
Project Layout
my-patent/
├── patent.yaml # structured data (MCP-managed)
├── sections/
│ ├── field.tex # prose (edit in IDE)
│ ├── background.tex # prose
│ ├── detailed-description.tex # prose
│ ├── abstract.tex # prose
│ ├── claims.tex # GENERATED
│ └── drawings-description.tex # GENERATED
├── figures/
│ └── *.pdf
├── main.tex # document root
└── tome/ # prior art library (optional)
Testing
uv run pytest
License
MIT
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 patentorney_mcp-0.2.0.tar.gz.
File metadata
- Download URL: patentorney_mcp-0.2.0.tar.gz
- Upload date:
- Size: 102.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fffb2b1fc980bba558f1a899c15c89251ffcb0bcb2c684c8d05f931050d7549
|
|
| MD5 |
f4533090ebaaeb4922e39a6429b9c61b
|
|
| BLAKE2b-256 |
4539c86aa7cb1fe0219ed72ee7b184efbd39c8b1fff72a5b8e2ccfba480edcac
|
Provenance
The following attestation bundles were made for patentorney_mcp-0.2.0.tar.gz:
Publisher:
publish.yml on retospect/patentorney-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
patentorney_mcp-0.2.0.tar.gz -
Subject digest:
2fffb2b1fc980bba558f1a899c15c89251ffcb0bcb2c684c8d05f931050d7549 - Sigstore transparency entry: 1243723100
- Sigstore integration time:
-
Permalink:
retospect/patentorney-mcp@8e1f6e32cd139e5699c020401897751bcc299053 -
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@8e1f6e32cd139e5699c020401897751bcc299053 -
Trigger Event:
push
-
Statement type:
File details
Details for the file patentorney_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: patentorney_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 42.4 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 |
835cbd7e70ee22e270f65e74675d7a1f674d8dd771fb112ad18111e2e4f504f1
|
|
| MD5 |
232b0125054f99583e22c958a724c54f
|
|
| BLAKE2b-256 |
b8c5fcb3866f59eab21a00feac872044b215343a7561b98ebe4cde24bea96a7b
|
Provenance
The following attestation bundles were made for patentorney_mcp-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on retospect/patentorney-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
patentorney_mcp-0.2.0-py3-none-any.whl -
Subject digest:
835cbd7e70ee22e270f65e74675d7a1f674d8dd771fb112ad18111e2e4f504f1 - Sigstore transparency entry: 1243723126
- Sigstore integration time:
-
Permalink:
retospect/patentorney-mcp@8e1f6e32cd139e5699c020401897751bcc299053 -
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@8e1f6e32cd139e5699c020401897751bcc299053 -
Trigger Event:
push
-
Statement type: