Hourei
Enables searching and retrieving Japanese legal information from the e-Gov Law API, including law searches by keyword, detailed law data retrieval, and revision history tracking.
What is Hourei?
Hourei is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables searching and retrieving japanese legal information from the e-gov law api, including law searches by keyword, detailed law data retrieval, and revision history tracking.
Enables searching and retrieving Japanese legal information from the e-Gov Law API, including law searches by keyword, detailed law data retrieval, and revision history tracking.
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables searching and retrieving Japanese legal information
Use Cases
Maintainer
Works with
Installation
NPM
npx -y hourei-mcp-serverManual Installation
npx -y hourei-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Hourei
The Hourei MCP server connects AI assistants to Japan's official e-Gov Law API (e-Gov 法令 API), enabling keyword-based searches across the entire corpus of Japanese national legislation, retrieval of full law text by law number, and access to amendment revision histories. It returns structured data with hierarchical law sections, making it a practical tool for lawyers, researchers, compliance teams, and developers working with Japanese legal information. Because it queries the official government database directly, the content is authoritative and kept current with legislative changes.
Prerequisites
- Node.js 18 or higher with npx available in your PATH
- An MCP-compatible client such as Claude Desktop, Cursor, or Manus
- No API key is required — the e-Gov Law API is publicly accessible
- Basic familiarity with Japanese law naming conventions (law numbers use Japanese era names)
Install via npx (no global install required)
The server can be run directly with npx without a separate installation step. This command is used both for testing and as the launch command in your MCP client config.
npx -y hourei-mcp-serverAdd the server to Claude Desktop
Open or create the Claude Desktop configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, then add the server block below.
Restart Claude Desktop
Save the configuration file and restart Claude Desktop to load the new MCP server. No environment variables are needed since the e-Gov API requires no authentication.
Test with a keyword search
Verify the server is working by asking Claude to search for a well-known Japanese law using a Japanese keyword.
Hourei Examples
Client configuration
Add this block to your Claude Desktop configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
{
"mcpServers": {
"hourei": {
"command": "npx",
"args": ["-y", "hourei-mcp-server"]
}
}
}Prompts to try
Use these prompts with Claude to search and retrieve Japanese legal information through the e-Gov Law API.
- "Search for Japanese laws related to 個人情報保護 (personal information protection)"
- "Retrieve the full text of the Civil Code (民法) using law number 明治二十九年法律第八十九号"
- "Find all laws containing the keyword 労働 (labor) and list their names and law numbers"
- "Show the revision history for the 会社法 (Companies Act)"
- "Search for laws in category 1 (constitutional and administrative law) related to 行政手続 (administrative procedure)"Troubleshooting Hourei
npx cannot find the hourei-mcp-server package
Ensure Node.js 18+ is installed and npx is working by running npx --version. If the package is not found, try clearing the npx cache with npx clear-npx-cache and retry. You can also install globally first: npm install -g hourei-mcp-server.
Law number searches return no results or unexpected data
Japanese law numbers must be in the correct Japanese era format, for example 平成十五年法律第五十七号. Confirm the law number by first doing a keyword search (search_law) to find the correct law number, then use that exact number with get_law_data.
Claude Desktop does not list hourei as an available server
Check that the JSON in claude_desktop_config.json is valid (no trailing commas, proper nesting). On macOS, the config file is at ~/Library/Application Support/Claude/claude_desktop_config.json. Restart Claude Desktop completely after editing the file.
Frequently Asked Questions about Hourei
What is Hourei?
Hourei is a Model Context Protocol (MCP) server that enables searching and retrieving japanese legal information from the e-gov law api, including law searches by keyword, detailed law data retrieval, and revision history tracking. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Hourei?
Install via npm with the command: npx -y hourei-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Hourei?
Hourei works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Hourei free to use?
Yes, Hourei is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Hourei Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Hourei? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Hourei in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Hourei?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.