AI Skill Hub 强烈推荐:OpenContracts MCP工具 是一款优质的MCP工具。已获得 1.3k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
OpenContracts是开源MCP工具,支持人类与AI智能体协同构建知识库。提供自托管文档管理、智能解析和ETL管道功能,适合法律文档处理、知识管理和AI驱动的信息抽取场景。
OpenContracts MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
OpenContracts是开源MCP工具,支持人类与AI智能体协同构建知识库。提供自托管文档管理、智能解析和ETL管道功能,适合法律文档处理、知识管理和AI驱动的信息抽取场景。
OpenContracts MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/Open-Source-Legal/OpenContracts
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"opencontracts-mcp--": {
"command": "npx",
"args": ["-y", "opencontracts"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 OpenContracts MCP工具 执行以下任务... Claude: [自动调用 OpenContracts MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"opencontracts_mcp__": {
"command": "npx",
"args": ["-y", "opencontracts"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="docs/assets/images/brand/icon_mark.svg" alt="OpenContracts" height="84"> </p>
Create a corpus, drop in your documents, and click Set up. That one click installs the intelligence bundle: agents describe and summarize every document, and the reference web starts weaving — every statutory citation detected, resolved, and drawn as an edge.

By the end of the clip, 36 SEC filings are a navigable graph — wired to the Delaware General Corporation Law, the Securities Act, and the SEC rules they cite, section by section. Law the library doesn't hold yet isn't dropped on the floor: it's tracked as a backlog, automatically, until you ingest it.
The discover/landing page and the /about page are driven by a JSON content pack so deployers can retarget the messaging without forking the codebase. Two variants ship in the repo:
| Variant key | Framing | Best fit |
|---|---|---|
default | _Open-source document intelligence you can build on._ | The OSS project's repo and most self-hosted deployments — developer-facing. |
public-record | _The citation layer underneath the public record._ | End-user deployments curating public-domain documents (named-incumbents pitch). |
Switch variants at runtime by setting REACT_APP_LANDING_VARIANT in frontend/public/env-config.js — no rebuild required. Unknown variant keys fall back to default.
// frontend/public/env-config.js
window._env_ = {
// … existing config
REACT_APP_LANDING_VARIANT: "public-record",
};
To add a deployment-specific variant, drop a <key>.json file in frontend/src/config/landingContent/ that matches the LandingContent type, register it in frontend/src/config/landingContent/index.ts, and set REACT_APP_LANDING_VARIANT=<key> on that deployment. Body copy in JSON can wrap the product name and named publications in *asterisks* to pick up the Source Serif italic treatment automatically (handled by renderInlineMarkup).
---
OpenContracts is a platform, not a black box. Everything the UI does runs on surfaces you can call yourself — point it at the documents you already have and build your own tooling on top.
docker compose -f local.yml build docker compose -f local.yml --profile fullstack up ```
Then open http://localhost:3000 and log in with admin / Openc0ntracts_def@ult.
See the full Quick Start guide for details and troubleshooting.
Open-source document intelligence you can build on.
Point OpenContracts at a repository of documents and get a programmable citation graph — human annotation, structured extraction, AI agents, and a built-in MCP server, all behind one API. Self-hosted, MIT-licensed, and built for teams working at scale.
Same graph, three surfaces: a GraphQL + REST API for your apps, a Model Context Protocol server for your agents, and a React UI for your team.
| Backend coverage | [](https://app.codecov.io/gh/Open-Source-Legal/OpenContracts?flags%5B0%5D=backend) |
| Frontend coverage | [](https://app.codecov.io/gh/Open-Source-Legal/OpenContracts?flags%5B0%5D=frontend) |
| Meta | [](https://github.com/psf/black) [](https://github.com/python/mypy) [](https://github.com/pycqa/isort) [](https://opensource.org/licenses/MIT) |
---
mkdir -p .envs/.local cp ./docs/sample_env_files/backend/local/.django ./.envs/.local/.django cp ./docs/sample_env_files/backend/local/.postgres ./.envs/.local/.postgres cp ./docs/sample_env_files/frontend/local/django.auth.env ./.envs/.local/.frontend
Parsing, embedding, and thumbnailing are swappable components. Register a custom parser, embedder, or thumbnailer for your formats and everything downstream — search, annotation, agents — keeps working unchanged.
See the pipeline overview.
The modular pipeline supports custom parsers, embedders, and thumbnail generators:
Each component inherits from a base class with a defined interface:
See the pipeline documentation for details on creating custom components.
</details>
---
Citations are highlighted inline on the filings themselves. The References panel lists everything a document cites — click any cite to open the statute, with its own cross-references and everything that cites it back. The ask bar runs a corpus-scoped agent whose answers come back grounded and cited.

Everything in both clips is the stock product against a local install — no custom code, and every surface the UI touches is also reachable over the API and MCP server below.
Here's the artifact those clips produce, frozen so you can read it — every filing wired to the exact section of law it cites, with bodies of law the library doesn't hold yet drawn as dashed nodes, tracked until you ingest them:

---
成熟的开源MCP工具,技术栈完整,社区活跃度高。文档处理与知识管理能力强,适合企业级应用和开发者集成。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,OpenContracts MCP工具 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | OpenContracts |
| 原始描述 | 开源MCP工具:Humans and AI agents, building knowledge bases together. Self-hosted document an。⭐1.3k · Python |
| Topics | 文档管理知识库AI智能体ETL管道开源 |
| GitHub | https://github.com/Open-Source-Legal/OpenContracts |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端