NL

numikel/law-scrapper-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

23 stars 6 forks 质量 82 趋势 30MIT

一个全面的模型上下文协议(MCP)服务器,用于访问和分析来自Sejm API的波兰法律行为,支持AI驱动的法律研究和文件分析。

概览

一个全面的模型上下文协议(MCP)服务器,用于访问和分析来自Sejm API的波兰法律行为,支持AI驱动的法律研究和文件分析。 - - 从Dziennik Ustaw(DU)和Monitor Polski(MP)提供对波兰法律文件的全面访问 - - 通过日期、类型、关键词、出版者和状态多条件搜索 - - 存储搜索结果并通过正则表达式、类型/状态/年份匹配、日期范围、排序进行筛选 - - 将行为加载到内存中,实现节级高效导航和搜索 - 元数据、结构、参考文献和内容检索 - - 自动将PDF转文本和HTML转Markdown转换 - - 专门的日期工具用于法律文件分析 - - 关键词、状态、文档类型和机构数据 - - 采用mcp[cli]==2.2构建。

概述(AI 翻译)

一个全面的模型上下文协议(MCP)服务器,用于访问和分析来自Sejm API的波兰法律行为,支持AI驱动的法律研究和文件分析。

特色

  • 全面的法律法案访问 - 来自Dziennik Ustaw(DU)和Monitor Polski(MP)对波兰法律法案的全面访问
  • 高级搜索和筛选 - 通过日期、类型、关键词、发布者和状态进行多条件搜索
  • 带链式筛选的结果存储 - 通过正则表达式、类型/状态/年份匹配、日期范围、排序来存储搜索结果和筛选
  • 文档存储模式 - 加载到内存中,实现节级高效导航和搜索
  • 详细文档分析 - 元数据、结构、参考文献和内容检索
  • 内容处理 - 自动将PDF转文本和HTML转Markdown转换
  • 日期计算 - 用于法律文件分析的专用日期工具
  • 系统元数据 - 关键词、状态、文档类型和机构数据
  • 官方MCP SDK - 由mcp[cli]==2.2.0和[MCPServer构建;STDIO和无状态可流式HTTP传输

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Law Scrapper MCP

A comprehensive Model Context Protocol (MCP) server for accessing and analyzing Polish legal acts from the Sejm API, enabling AI-powered legal research and document analysis.

Features

  • Comprehensive legal act access - Full access to Polish legal acts from Dziennik Ustaw (DU) and Monitor Polski (MP)
  • Advanced search and filtering - Multi-criteria search by date, type, keywords, publisher, and status
  • Result Store with chained filtering - Store search results and filter with regex, type/status/year match, date ranges, sorting
  • Document Store pattern - Load acts into memory for efficient section-level navigation and search
  • Detailed document analysis - Metadata, structure, references, and content retrieval
  • Content processing - Automatic PDF-to-text and HTML-to-Markdown conversion
  • Date calculations - Specialized date utilities for legal document analysis
  • System metadata - Keywords, statuses, document types, and institution data
  • Official MCP SDK - Built with mcp[cli]==2.2.0 and MCPServer; STDIO and stateless Streamable HTTP transports
  • Async HTTP client - Efficient httpx client with retry logic and connection pooling
  • TTL caching - Intelligent response caching with configurable TTL
  • Structured logging - JSON and text log formats for easy debugging
  • Docker support - Containerized deployment with docker-compose
  • Comprehensive documentation - Examples and clear parameter descriptions

Requirements

  • Python: 3.13 or higher
  • Package manager: uv (recommended) or pip
  • Internet connection: Required for accessing Sejm API endpoints
  • MCP-compatible tool: Cursor IDE, Claude Code, or other MCP clients

Installation

# Clone the repository
git clone https://github.com/numikel/law-scrapper-mcp.git
cd law-scrapper-mcp

# Install dependencies
uv sync

# Install with dev dependencies
uv sync --extra dev

Using pip

# Clone the repository
git clone https://github.com/numikel/law-scrapper-mcp.git
cd law-scrapper-mcp

# Install dependencies
pip install -e .

Using uvx (no installation required)

For quick testing without cloning the repository:

# Run the server directly from GitHub
uvx --from git+https://github.com/numikel/law-scrapper-mcp law-scrapper

Quick start

STDIO transport (default)

STDIO is the default transport for MCP communication. Start the server and connect from your MCP client:

# Run the server
uv run python -m law_scrapper_mcp
在 GitHub 查看完整 README

安装

uvx --from git+https://github.com/numikel/law-scrapper-mcp law-scrapper
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "law-scrapper-mcp": { "command": "law-scrapper" } } }