Zipcode Search MCP Server
Provides Japanese postal code to address lookup functionality that can be integrated with AI assistants and other MCP clients.
README
Zipcode Search MCP Server
A Model Context Protocol (MCP) server that provides Japanese postal code to address lookup functionality. This server can be integrated with AI assistants and other MCP clients to enable postal code search capabilities.
Features
- 🏣 Search Japanese addresses by 7-digit postal codes
- 🔌 Model Context Protocol (MCP) compatible
- 🚀 Fast and lightweight implementation
- 🌐 Uses reliable Zipcloud API as data source
- 🛡️ Built-in error handling and validation
Tech Stack
- Python 3.10+
- MCP (Model Context Protocol) - AI tool integration protocol
- FastMCP - MCP server framework
- httpx - Modern HTTP client
- Zipcloud API - Japanese postal code data source
Installation
Prerequisites
- Python 3.10 or higher
- uv (recommended) or pip
Quick Start
- Clone the repository:
git clone https://github.com/rooking-oss/zipcode-search-mcp.git
cd zipcode-search-mcp
- Install dependencies using uv:
uv sync
Or with pip:
pip install -e .
- Run the MCP server:
uv run python main.py
MCP Client Configuration
Claude Desktop
Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"zipcode-search": {
"command": "uv",
"args": ["run", "python", "/path/to/zipcode-search-mcp/main.py"]
}
}
}
Other MCP Clients
For other MCP clients, refer to the included .mcp.json configuration file or use the following connection details:
- Server Name:
zipcode-search - Command:
uv run python main.py - Working Directory: Project root directory
Available Tools
search_zipcode
Searches for a Japanese address using a postal code.
Parameters:
zipcode(string): 7-digit postal code (e.g., "1000001")
Returns:
address(string): The found address, or "Address not found" if no match
Example Usage:
In your MCP client (like Claude):
What's the address for postal code 1000001?
Or directly:
Use the search_zipcode tool to find the address for postal code 1600020
API Reference
The server provides one tool through the MCP protocol:
| Tool | Description | Input | Output |
|---|---|---|---|
search_zipcode |
Search address by postal code | zipcode: string |
{address: string} |
Development
Project Structure
zipcode-search-mcp/
├── main.py # MCP server implementation
├── pyproject.toml # Project configuration and dependencies
├── uv.lock # Dependency lock file
├── .mcp.json # MCP client configuration
├── .python-version # Python version specification
├── .gitignore # Git ignore rules
└── README.md # This file
Development Setup
- Clone and install in development mode:
git clone https://github.com/rooking-oss/zipcode-search-mcp.git
cd zipcode-search-mcp
uv sync
- Run tests (if available):
uv run pytest
- Format code:
uv run black .
uv run isort .
Contributing
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests if applicable
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Dependencies
External Services
- Zipcloud API - Provides postal code to address mapping data
Python Packages
mcp[cli]- Model Context Protocol implementationhttpx- Async HTTP client for API requests
Troubleshooting
Server Won't Start
- Verify Python version is 3.10+:
python --version
- Ensure dependencies are installed:
uv sync
- Check if the server starts manually:
uv run python main.py
Postal Code Not Found
- Ensure the postal code is exactly 7 digits (no hyphens)
- Verify the Zipcloud API is accessible
- Check your internet connection
MCP Client Connection Issues
- Verify the path in your MCP client configuration is correct
- Ensure the server is executable from the specified directory
- Check MCP client logs for detailed error messages
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Zipcloud for providing the postal code API
- Model Context Protocol for the integration framework
- FastMCP for the server implementation
Support
If you encounter any issues or have questions:
- Check the Issues page
- Create a new issue with detailed information
- For general questions, start a Discussion
Note: This service uses the Zipcloud API and is intended for development and educational purposes. For production use, please ensure proper error handling, rate limiting, and compliance with the Zipcloud API terms of service.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.