faxin-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@faxin-mcp查一下劳动合同法第十条"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
faxin-mcp (Faxin MCP Connector · Public Edition)
Wraps Faxin (the legal research platform under Law Press China) into an MCP (Model Context Protocol) service, so that any MCP-capable AI client (Claude Desktop, Cherry Studio, various coding agents, etc.) can directly search Chinese laws and regulations, adjudicative rules, Faxin outline concepts, and similar cases (authoritative case library).
How it works: Login is completed by you in the pop-up browser using your own Faxin website account; after that, all searches and detail reads are pure HTTP calls carrying that session cookie (the browser serves only as a cookie container, no page rendering), with each search taking about 2-8 seconds.
Features (9 tools)
Tool | Purpose |
| Check login state (30-minute cache, |
| Law and regulation search (central/local, with validity filtering: currently in effect / invalid / superseded / not yet in effect) |
| Adjudicative rule search (case holdings distilled by Faxin editors) |
| Specialized library search: national treaties / Hong Kong law / Macau law / law journals / legal interpretations / legislative materials / judicial documents |
| Faxin outline concept search (Faxin code knowledge tree; do concept discovery first when you don't know which terms to search) |
| Concept details: aggregated counts across libraries + related provision excerpts |
| Direct provision lookup: law name (abbreviations allowed) + article number → full article text + validity information |
| Similar case search (authoritative case library: guiding cases / gazette cases / published cases, with filters for cause of action, court level, province, year, etc.) |
| Document reading (full text of laws / adjudicative rules / specialized library entries, with support for fetching a specific article by number) |
Related MCP server: LexLink
Installation
# 1. 克隆本仓库
git clone <repo-url>
cd faxin-mcp-public
# 2. 建虚拟环境并装依赖
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
# 3. 安装 Playwright 浏览器
.venv/bin/playwright install chromiumFirst-time login
.venv/bin/python login.pyA browser window pops up → open the Faxin website → click "Login" → complete login with your own Faxin account (account/password, SMS verification code, or QR code, depending on what the official website offers);
After confirming the page shows a logged-in state, return to the terminal and press Enter to save the session;
The script will automatically verify headless reuse once. After that, no further login is needed during normal use; if the session expires (the tools will prompt you), just rerun this script.
This script does not read, record, or upload your account password — all credentials pass only through the Faxin official website page.
Configuring an MCP Client
Using Claude Desktop (claude_desktop_config.json) as an example:
{
"mcpServers": {
"faxin": {
"type": "stdio",
"command": "/你的路径/faxin-mcp-public/.venv/bin/python",
"args": ["/你的路径/faxin-mcp-public/server.py"]
}
}
}Other MCP clients (Cherry Studio, etc.) work the same way: fill in the python interpreter path + server.py path.
Optional Environment Variables
Variable | Default | Description |
|
| Faxin entry point |
|
| Browser user data directory (stores session cookie) |
|
| Headless mode on the server side; set to |
|
| Default number of results returned per search |
Usage Suggestions (Keyword Strategy)
Prefer case cause words (e.g., "买卖合同纠纷" (sales contract dispute), "民间借贷纠纷" (private lending dispute)) or exact wording from the statutory text (e.g., "盗窃公私财物" / theft of public or private property) when searching; abstract legal concepts have a low hit rate;
To look up a provision: if you already know the law name + article number, use
faxin_get_tiaodirectly (fastest); if you only know a topic word, usefaxin_search_law;If you don't know which terms to search, first run
faxin_search_outlinefor concept discovery, then drill into the library with the aggregated counts per library;The adjudicative rule library is large; a single search taking 7-17 seconds is normal; use it at low frequency, do not call it repeatedly in quick succession (the platform will temporarily throttle you, and it self-heals after about 60 seconds).
Main Site Compatibility Test (2026-08-22, www.faxin.cn anonymous + logged-in dual-round probing)
Anonymous access (no login required):
Capability | Endpoint | Status |
Homepage/login page |
| ✅ Login form includes account/password, SMS, and QR code |
Per-library counts |
| ✅ Returns JSON |
Law search |
| ✅ Returns |
Direct provision lookup |
| ✅ Returns full article text + document number + validity information |
Law detail |
| ✅ Full text served directly from the server |
Post-login verification (tested with a personal Faxin account):
Capability | Interface | Login-state result |
Login state | Search page redirect | ✅ No redirect when logged in (session reuse across interfaces works) |
Outline concepts |
| ✅ Returns |
Adjudicative rule search |
| ❌ The interface counts by keyword (AllCount changes with the term) but the result list is empty — this account has no content permission for the adjudicative rule library (it can count but not view). The count interface with |
Similar case search |
| ⚠️ The homepage laIndex link has an empty |
Conclusion: The main site's interface paths are isomorphic to the bar association VIP version. Law search / direct provision lookup / outline / detail reading work after login; the adjudicative rule library is limited by account permissions (unrelated to the connector); similar case search is not supported for now on the main site due to the token mechanism difference (the bar association version works normally).
⚠️ Compliance Statement (read before use)
This project is only an MCP protocol adaptation layer, with the following positioning and boundaries:
It does not bypass any authentication. Login must be performed by the user themselves in the pop-up browser, using their own Faxin account. This project contains no cracking, simulated login, CAPTCHA recognition, or encryption algorithm parsing code.
It does not evade any detection or anti-scraping measures. This project does not use any hidden automation-feature startup parameters or script injection.
It does not access beyond your permissions. It only accesses content within the user's account permissions. Some libraries (such as the adjudicative rule library and similar case library) may require a paid Faxin account for full access — please rely on your own account's actual permissions.
It does not do bulk scraping or build a local database. It only provides on-demand single searches; please use it at low frequency and comply with the Faxin platform's user agreement and robots rules.
The content relayed by this project is copyrighted by the original platform. Search results are for personal research and learning only, and must not be used for commercial resale.
Disclaimer
This project is a personal learning and exchange open-source tool, with no affiliation or authorization relationship with the Faxin platform;
The Faxin platform's page structure and interfaces may change at any time; this project does not guarantee long-term availability;
Users should ensure their usage complies with the Faxin platform's user agreement and applicable laws; all consequences arising from using this project are the user's own responsibility;
Search results are for reference only and do not constitute legal advice; for formal citation of statutory provisions, please refer to the official published text.
Anyone who modifies this code (e.g., fork and further develop) and then redistributes or uses it bears all legal risks arising from their modifications and their usage, which are unrelated to the original author.
This project contains no bulk scraping, anti-detection, or cracking functionality. If the Faxin platform updates its user agreement to explicitly prohibit automated tools from calling its interfaces, users should stop using this project on their own; the original author bears no responsibility for this.
License
MIT License (see LICENSE). The copyright of the Faxin platform's content is not changed by this project's MIT license.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables searching and retrieving Korean legal information including laws, court precedents, legal interpretations, and local ordinances from the Korean National Law Information Center API with intelligent search ranking.
- FlicenseAqualityBmaintenanceEnables AI systems to search, retrieve, and analyze Korean legal information from the National Law Information API (law.go.kr), including laws, administrative rules, English translations, and law-ordinance linkages.261
- FlicenseAqualityBmaintenanceEnables 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.85
- FlicenseNot gradedqualityDmaintenanceEnables searching and retrieving Korean laws, precedents, and administrative rules through the National Law Information Center Open API, optimized for AI agents.
Related MCP Connectors
Resolve, search and verify legal citations against the official sources, with provenance.
Search French and European case law and French legal texts (codes, statutes, treaties).
Simplified lookup of a person's or company's lawsuits from the CPF or CNPJ. Platform-hosted, no cred
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Emnllawlab/faxin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server