Metadata-Version: 2.4
Name: mcp-legal-search
Version: 0.1.0
Summary: A legal regulation search MCP service based on GitHub LawRefBook
License: MIT
Requires-Python: >=3.10
Requires-Dist: fastmcp>=0.1.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp>=1.2.0
Description-Content-Type: text/markdown

# mcp-legal-search

基于 GitHub LawRefBook 的法律法规检索 MCP 服务。

## 功能

| 工具 | 说明 |
|------|------|
| `search_github_law` | 搜索法律法规库，返回标题、摘要、法规编号和链接 |

## 安装

```bash
pip install -e .
```

## 配置到 AI 客户端

### Claude Desktop

`~/.claude/settings.json`：

```json
{
  "mcpServers": {
    "mcp-legal-search": {
      "command": "uvx",
      "args": ["mcp-legal-search"]
    }
  }
}
```

### Cursor

`~/.cursor/mcp.json`：

```json
{
  "mcpServers": {
    "mcp-legal-search": {
      "command": "uvx",
      "args": ["mcp-legal-search"]
    }
  }
}
```

## 使用示例

```
tool: search_github_law
input: {"keywords": "劳动合同", "top_k": 5}
```
