DEMO Country MCP Server
A modular server providing tools for country and state lookups, usable as a CLI or plug-in agent.
DEMO Country MCP Server
A modular MCP server exposing tools for country and state lookups. Ready for use as a CLI or plug-in agent.
Quick Start
-
Clone and set up your environment
git clone <REPO_URL> cd mcp-server
-
Build the package
python -m build
-
Install globally with pipx
pipx install dist/country_mcp_server-*.whl --force
-
Run the server
country-mcp-server
Or, for development with Inspector UI:
mcp dev country_server_mcp/main.py
Add Your Own Tools
- Put new modules in
country_server_mcp/tools/. - Each module should define a
register(mcp)function and add tools using@mcp.tool(). - Import and call each new tool's
register(mcp)inmain.py. - Rebuild and reinstall with
pipx install dist/… --force.
Example Project Layout
country_server_mcp/
__init__.py
main.py
tools/
__init__.py
countries.py
states.py
pyproject.toml
README.md
Use as an MCP agent
Add to your orchestrator config:
{
"mcpServers": {
"country": {
"command": "country-mcp-server",
"args": []
}
}
}
Notes
- If you update tools, rebuild and reinstall the package.
- Make sure your CLI binary is in your PATH (
~/.local/binfor pipx by default). - For dev mode, editable install:
pip install -e .
Let me know if you want it even more minimal or need a specific “getting started” blurb for a team!
Похожие серверы
German Family Business Knowledge Graph
Query a Neo4j graph database containing a knowledge graph of German family businesses.
Elasticsearch
Connect to and interact with an Elasticsearch cluster directly from any MCP client using environment variables for configuration.
MCP Migration Advisor
Database migration risk analysis for Flyway and Liquibase. Detects dangerous schema changes — lock risks, data loss, destructive operations — before they hit production.
CData SAP ByDesign
A read-only MCP server for querying live SAP ByDesign data. Requires a separate CData JDBC Driver for SAP ByDesign.
Wave Financial MCP Server by CData
A read-only MCP server for querying live Wave Financial data, powered by CData.
Zero-Vector MCP
A high-performance vector database server for AI persona memory management.
MongoDB
A Model Context Protocol Server for MongoDB
SQL Server MCP
A read-only Model Context Protocol (MCP) server for Microsoft SQL Server, enabling safe metadata discovery and parameterized SELECT queries.
Prometheus
Retrieve and analyze time-series data from Prometheus databases using PromQL queries.
MongoDB
Interact with MongoDB databases and MongoDB Atlas.