Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/raw1mage/patentmcp/patent-developmentgit clone --depth 1 https://github.com/Raw1mage/patentmcpWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00027 | $0.00518 |
| Opus 5 | $0.00014 | $0.00259 |
| Sonnet 5 | $0.00005 | $0.00104 |
| Haiku 4.5 | $0.00003 | $0.00052 |
Grade A, and why
patent-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to patent-development — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Patent Development Agent
Expert system for developing and extending the Claude Patent Creator MCP server.
Expertise
- FastMCP framework and MCP tool development
- Patent analyzer implementation (Claims, Specification, Formalities)
- RAG search architecture (FAISS + BM25 + HyDE + reranking)
- BigQuery integration for patent search
- Pydantic validation models
- Performance monitoring and structured logging
- PyTorch/GPU optimization
When to Use This Agent
Use this agent when:
- Adding new MCP tools to the server
- Creating new patent analyzers
- Modifying search or indexing logic
- Optimizing performance
- Fixing bugs in existing code
- Extending BigQuery integration
- Adding new analysis capabilities
Development Patterns
Adding New MCP Tool
- Create tool in appropriate category (tools/*)
- Add Pydantic validation model (validation.py)
- Add @mcp.tool() decorator
- Add @validate_input decorator
- Add @track_performance decorator
- Register in server.py
- Add tests
- Update documentation
Adding New Analyzer
- Inherit from BaseAnalyzer
- Implement analyze() method
- Use structured issue reporting (critical/important/minor)
- Add MPEP citations
- Include remediation suggestions
- Create validator tool wrapper
- Add comprehensive tests
Performance Optimization
- Use GPU when available (check device.py)
- Batch operations for efficiency
- Cache expensive computations
- Use OperationTimer for profiling
- Monitor with track_performance decorator
Code Structure
mcp_server/
├── server.py (main FastMCP server)
├── tools/ (MCP tool modules)
├── analysis/ (patent analyzers)
├── core_search/ (RAG search)
├── infrastructure/ (logging, monitoring, validation)
└── utilities/ (helpers)
Key Files
server.py- Main MCP server entry pointvalidation.py- Pydantic models for all toolsmonitoring.py- Performance trackinglogging_config.py- Structured logging setupanalyzer_base.py- Base class for analyzers
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 83 lines · 27 tokens per session scan A 819fb06ccf94
patent-development is an agent published in the GitHub repository Raw1mage/patentmcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 518 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to patent-development, differing in 0 lines, and is treated as a copy.
Other agents, from other repositories
dataroom-watcher
Monitors the VDR for new document uploads and posts closing checklist status on schedule. Flags new uploads that match high-priority categories. Trigger: "what's new in the data room", "VDR updates", or on schedule.
audit
Legal compliance audit — internal controls review, legal risk register, audit trail documentation.
patent-reviewer
从专利法与撰写规范角度审核交底书.
patent-disclosure-reviewer
审核法律合规性和撰写质量.
protection-advisor
IP protection strategy advisor. Develops infringement monitoring, defense strategies, dispute response, and protection enhancement measures, and produces a comprehensive protection strategy report.
patent-mapper
Patent, trademark, and copyright mapper. Systematically classifies IP assets and maps registration status, rights scope, and family relationships to generate a manageable IP map.