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.0.tar.gz (102.1 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.0-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

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

Hashes for patentorney_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2fffb2b1fc980bba558f1a899c15c89251ffcb0bcb2c684c8d05f931050d7549
MD5 f4533090ebaaeb4922e39a6429b9c61b
BLAKE2b-256 4539c86aa7cb1fe0219ed72ee7b184efbd39c8b1fff72a5b8e2ccfba480edcac

See more details on using hashes here.

Provenance

The following attestation bundles were made for patentorney_mcp-0.2.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for patentorney_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 835cbd7e70ee22e270f65e74675d7a1f674d8dd771fb112ad18111e2e4f504f1
MD5 232b0125054f99583e22c958a724c54f
BLAKE2b-256 b8c5fcb3866f59eab21a00feac872044b215343a7561b98ebe4cde24bea96a7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for patentorney_mcp-0.2.0-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