civil code of china mcp
mcp server of China civil code
mcp server of China civil code
The Civil Code MCP Server is a Model Context Protocol (MCP) server that provides structured access to the content and organization of the Chinese Civil Code. This implementation allows AI models to efficiently retrieve, navigate, and search through the Civil Code's hierarchical structure and specific articles.
The server is built using the Model Context Protocol SDK and implements two main tools:
parent_node
(string) - The path of the parent nodeOutput: A JSON object containing the list of child nodes
get_article_content: Retrieve the content of a specific article
article_path
(string) - The full path to the articleThe server maintains two key data structures:
- StructData
: A mapping from node paths to their child nodes
- ContentData
: A mapping from article paths to their textual content
The server runs on standard input/output and can be connected to any MCP-compatible client. It provides a structured interface for accessing the Chinese Civil Code, enabling AI models to reference specific legal articles and navigate through the code's structure.
You can start the server directly using npx:
bash npx -y @jjfather/civil-code-of-china-mcp
This command will download and run the MCP server without needing to install it globally.
The Civil Code MCP Server is a server based on the Model Context Protocol (MCP) that provides structured access to the content and organization of the Chinese Civil Code. This implementation allows AI models to efficiently retrieve, navigate, and search through the hierarchical structure and specific articles of the Civil Code.
The server is built using the Model Context Protocol SDK and implements two main tools:
parent_node
(string) - The path of the parent nodeOutput: A JSON object containing the list of child nodes
get_article_content: Retrieve the content of a specific article
article_path
(string) - The full path to the articleThe server maintains two key data structures:
- StructData
: A mapping from node paths to their child nodes
- ContentData
: A mapping from article paths to their textual content
The server runs on standard input/output and can be connected to any MCP-compatible client. It provides a structured interface for accessing the Chinese Civil Code, enabling AI models to reference specific legal articles and navigate through the code's structure.
You can start the server directly using npx:
bash npx -y @jjfather/civil-code-of-china-mcp
This command will download and run the MCP server without needing to install it globally.