MCP server for retrieving issues from law_recognition
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_law_recognition-0.1.1.tar.gz.
File metadata
- Download URL: mcp_server_law_recognition-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d27a76ac4376ae329b577b07f7c6e1d17536232e90c8d8cdd911bd334f9d257c
|
|
| MD5 |
d77a1d7e7c317f7d2fdad6c2f47e41cd
|
|
| BLAKE2b-256 |
29b26a234651be5f4d75df404794d80859ef547e4fad1f3fdea71616d95a2484
|
File details
Details for the file mcp_server_law_recognition-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_server_law_recognition-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87de4020824fa06d624fbb5427827c742a0f106c603e3cce14542cec08d9c927
|
|
| MD5 |
dd5032ecdf255b11bed68c36addb47de
|
|
| BLAKE2b-256 |
c404499c309c5dc1d625233a51ac98fce7ac95f25e7cb937119cc1ac5bd0b717
|