aluris-caselibrary-mcp

aluris-caselibrary-mcp

Enables semantic search and retrieval of Chinese judicial cases from the Supreme People's Court case library, supporting natural language queries for similar cases, case details, filtering, and statistics.

Category
Visit Server

README

法随·指导案例MCP

基于最高人民法院案例库的语义检索 MCP 工具,支持自然语言查找类案。

案例类型

共收录 7,364 条权威案例,覆盖 7 类:

案例类型 数量 效力 说明
案例库案例 5,205 入库参考 最高法统一筛选入库,法官办案检索参考
指导案例 558 应当参照 最高法审委会讨论通过
典型案例 544 示范意义 最高法/最高检专题发布
公报案例 457 可以参考 最高法公报发布
最高检指导性案例 239 应当参照 最高检检委会讨论通过
最高检典型案例 196 示范意义 最高检专题发布
法答网 165 精选问答 最高法研究室权威答疑

数据每周增量更新(案例库案例自动同步),无需手动维护。

MCP 工具

工具 说明
search_similar_cases 语义检索类案,输入案情描述返回最相似案例
get_case_detail 查看案例全文(裁判要点、基本案情、法条等)
filter_cases 按法院、年份、案由、来源精确过滤
library_stats 案例库统计概览
sync_now 手动触发增量同步

安装

前置要求

  • Python 3.11+
  • uv(推荐,用于依赖管理)

方式一:GitHub Release 数据包(推荐)

git clone https://github.com/alexchenlin1996-pixel/aluris-caselibrary-mcp.git
cd aluris-caselibrary-mcp
uv sync
python setup_wizard.py --choice 1   # 自动下载数据包

方式二:独立同步模式

git clone https://github.com/alexchenlin1996-pixel/aluris-caselibrary-mcp.git
cd aluris-caselibrary-mcp
uv sync
python setup_wizard.py --choice 2   # 引导配置 API Key + 登录,自行接管增量更新

方式三:混合模式

python setup_wizard.py --choice 3   # 先拉包,后续自己接管增量

配置环境变量

变量 说明
ZHIPU_API_KEY 智谱 API Key(用于 embedding)
CASE_DB_PATH 数据目录,默认 ~/.myagents/case_db

接入 MCP 客户端

标准 MCP stdio 协议,任意客户端只需配置三个要素:

要素
命令 uv --directory /path/to/aluris-caselibrary-mcp run python server.py
环境变量 ZHIPU_API_KEY + CASE_DB_PATH

各客户端语法不同但本质相同,举例如下:

MyAgents — 设置页 MCP 服务器中添加 stdio 类型,command 填 uv,args 填 --directory /path/to/aluris-caselibrary-mcp run python server.py

Claude Code / Gemini CLImcp add 命令:

claude mcp add case-library \
  -e ZHIPU_API_KEY=your-key -e CASE_DB_PATH=~/.myagents/case_db \
  -- uv --directory /path/to/aluris-caselibrary-mcp run python server.py

Codexcodex.yamlmcp_servers 下按 command/args/env 配置即可

定时更新

# 手动执行
uv run python sync.py

# 或在 MyAgents 中设置定时任务,调用 sync_now 工具

技术栈

  • 智谱 embedding-3 (2048维)
  • numpy 余弦相似度
  • FastMCP (Python MCP SDK)
  • Playwright (rmfyalk 登录态)
  • httpx (公开数据同步)

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured