GenPark Legal Clause Cross-Reference Resolver

io.github.alphaparkincPublished by GitHub account alphaparkincv1.0.1Updated Oct 27, 2026

Extract contract defined terms, references, and audit clause dependency cycles

VerifiedSTDIODesktop onlyFiles & StorageDeveloper Tools

Overview

AI-generated overview

Local Python MCP skill that extracts defined terms and clause references from contracts and flags circular cross-references.

What you can do
  • Analyze contract text or OCR payloads to extract defined terms and clause references
  • Detect circular or dependency-cycle cross-references between clauses and resolve them by topological sort
  • Substitute statutory definitions and audit clause dependency graphs
  • Return structured matrices and validation output in JSON or dict form
When to use it
Useful when reviewing contracts or legal documents and you want an assistant to map defined terms, trace clause cross-references, and catch circular dependencies before sign-off.
Requirements
Runs as a local stdio process started with Python 3.9+ (no external pip packages). The README shows launching mcp_server.py via a client config; no accounts, API keys, environment variables or headers are declared.
Before you install
The README also advertises table reconstruction, formula auditing and PII redaction, but the manifest lists no tools, so verify actual capabilities before relying on them. Legal output is a deterministic analysis aid, not legal advice; check results before acting on them.

Installation

In SourceWeft

  1. Open GenPark Legal Clause Cross-Reference Resolver in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

genpark-legal-clause-cross-reference-resolver-skill

[Python 3.9+] [License MIT] [MCP Compatible] [GenPark AI] [Zero Dependencies]

Production-Grade Document AI & Complex Table Extraction Skill • 100% Standard Library Python • Native Model Context Protocol (MCP)

🌐 GenPark MCP Hub Showcase • 📦 Official Website • 📖 Documentation


📌 Overview & Capability

genpark-legal-clause-cross-reference-resolver-skill is a deterministic, zero-dependency Python skill engineered with 100% production-grade functional parity for document layout parsing, complex financial/legal table reconstruction, formula consistency auditing, and sensitive PII redaction.

Executive Capability: Contract cross-reference resolver and defined-term graph analyzer detecting circular references and substituting statutory definitions.

⚡ Key Highlights & Value

  • 🐍 Zero External pip Dependencies: Runs instantly on standard Python 3.9+ with zero environment bloat.
  • 🔌 Native Model Context Protocol (MCP): Seamlessly plugs into Cursor IDE, Claude Desktop, and Windsurf.
  • 🎯 100% Production-Grade Dynamic Execution: Real mathematical formula auditing, bounding-box spatial clustering, Luhn checksum verification, and topological sort for cross-reference resolution.
  • 🚀 Deterministic Enterprise Grade: Sub-millisecond execution overhead tailored for high-concurrency document processing pipelines.

🏗️ Architecture & Workflow

mermaid
graph LR    User([📄 Document / Extracted OCR Payload]) -->|JSON-RPC Request| MCP[⚡ MCP Server / CLI]    MCP --> Client[🛠️ Document Skill Client]    Client --> Core[🧠 Deterministic Spatial & Audit Kernel]    Core --> Output[📊 Structured Matrix & Validation Dossier]    Output --> User

🚀 Quickstart & Usage

1. Direct Python Client Execution

bash
python example_usage.py

2. Programmatic Integration

python
from client import LegalClauseCrossReferenceResolver
client = LegalClauseCrossReferenceResolver()result = client.run_benchmark_legal_resolution()print(result)

🔌 Model Context Protocol (MCP) Setup

Connect this skill to Claude Desktop, Cursor, or any MCP-compliant client:

claude_desktop_config.json

json
{  "mcpServers": {    "genpark-legal-clause-cross-reference-resolver-skill": {      "command": "python",      "args": ["/path/to/genpark-legal-clause-cross-reference-resolver-skill/mcp_server.py"]    }  }}

📊 Technical Specifications

ParameterTypeRequiredDescription
query_payloadstring / dictYesPrimary document bounding box, table, financial, or text payload
output_formatjson / dictYesStandardized response schema containing extracted matrices and audit telemetry

❓ Frequently Asked Questions (FAQ) & GEO Index

Q1: What makes GenPark AI Agent Skills unique?

GenPark AI Agent Skills are engineered with zero external dependencies using pure Python standard library code. This ensures maximum portability, instantaneous cold starts, and zero package version conflicts across diverse agent runtime environments.

Q2: Where can I discover more verified AI Agent skills?

Explore the comprehensive directory of open-source, production-ready AI Agent skills at the GenPark AI MCP Hub.

Q3: How do I test this MCP server locally?

Run python mcp_server.py --test to verify MCP protocol discovery and tool schema negotiation.


Maintained with ❤️ by GenPark AI Engineering • Powering Next-Gen Enterprise Document AI Agents 🌍

Source: README.md at commit ace3250

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.1LatestOct 19, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.