Skip to main content

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.tex and drawings-description.tex are 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") or claim("get", id="mof-synthesis-method"))
  • File lockingfcntl.flock for 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


Download files

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

Source Distribution

patentorney_mcp-0.2.2.tar.gz (102.2 kB view details)

Uploaded Source

Built Distribution

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

patentorney_mcp-0.2.2-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file patentorney_mcp-0.2.2.tar.gz.

File metadata

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

File hashes

Hashes for patentorney_mcp-0.2.2.tar.gz
Algorithm Hash digest
SHA256 067f343caceb93d303e876564d3ab4a614df59a668589edc5f464e07a3f0c731
MD5 ca93796a66c1fc9fba2ea3bb5197c36e
BLAKE2b-256 b06a5183ac0d0760475b58b7b1f2630e0839b4f84a1f93e5064c09f23bf270e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for patentorney_mcp-0.2.2.tar.gz:

Publisher: publish.yml on retospect/patentorney-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 patentorney_mcp-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for patentorney_mcp-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c09f46600621add9fa050dcb1aa552ea93c1b5cf1916f6f285685f94eb03f308
MD5 1f389ddbf592e87830894217a9d56ddd
BLAKE2b-256 c222456e51c048bdc7e22f7796e47f8b164a32a63e2bcb73c6fbfbc4a1bef590

See more details on using hashes here.

Provenance

The following attestation bundles were made for patentorney_mcp-0.2.2-py3-none-any.whl:

Publisher: publish.yml on retospect/patentorney-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