Project description
Identification and standardization of regulations and legal provisions. Use this tool when you need to:
- Extract from the text paragraph: regulatory name and provisions
- The extracted regulations and laws correspond to the names of standard regulations and the number of clauses in the regulatory database
Requirements
- requires-python = ">=3.10"
- mcp>=1.0.0
Installation
- pip install mcp_server_law_recognition
Usage
Sample
from mcp import ClientSession, StdioServerParameters, types
from mcp.client.stdio import stdio_client
server_params = StdioServerParameters(
command="python", # Executable
args=["-m","mcp_server_law_recognition"], # Optional command line arguments
env={
"pkulaw_api_key": "da9629867ee841518***********"
} # Optional environment variables
)
async def run():
async with stdio_client(server_params) as (read, write):
async with ClientSession(
read, write
) as session:
# Initialize the connection
await session.initialize()
tools = await session.list_tools()
print('tools:',tools)
result = await session.call_tool("get_law_recognition", arguments={"text": "根据《民法典》第一千二百六十条规定,该法自2021年1月1日起施行,同时废止了《中华人民共和国婚姻法》、《中华人民共和国继承法》、《中华人民共和国民法通则》..."})
print('result:',result)
if __name__ == "__main__":
import asyncio
asyncio.run(run())
Contact US
- Apply for an APIKEY:lifajie@chinalawinfo.com
Metadata
Release files for mcp-server-law-recognition 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_server_law_recognition-0.1.1.tar.gz | 5.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_server_law_recognition-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / mcp_server_law_recognition-0.1.1.tar.gz
| Download URL | mcp_server_law_recognition-0.1.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d27a76ac4376ae329b577b07f7c6e1d17536232e90c8d8cdd911bd334f9d257c
|
|
BLAKE2b-256 checksum How to use checksums |
29b26a234651be5f4d75df404794d80859ef547e4fad1f3fdea71616d95a2484
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.14
|
Release files / mcp_server_law_recognition-0.1.1-py3-none-any.whl
| Download URL | mcp_server_law_recognition-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87de4020824fa06d624fbb5427827c742a0f106c603e3cce14542cec08d9c927
|
|
BLAKE2b-256 checksum How to use checksums |
c404499c309c5dc1d625233a51ac98fce7ac95f25e7cb937119cc1ac5bd0b717
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.14
|
Security for mcp-server-law-recognition 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.