Back to Home
yuvko24 icon

mcp-countries-server

Verified Safe

by yuvko24

Overview

Provides an API wrapper for accessing country information from an external REST API (restcountries.com), exposing tools to query country details by name, list by region, or search by language.

Installation

Run Command
python server.py

Security Notes

The server uses `urllib.parse.quote` for user-provided input in URLs, which helps prevent URL injection. It uses `httpx` with a timeout, which is good practice for external API calls. No `eval` or hardcoded secrets are present. The primary external risk comes from the reliability and security of the `restcountries.com` API itself, which is beyond the scope of this code's direct control. The server binds to 0.0.0.0, making it externally accessible if deployed without proper firewalling, but this is standard for server applications.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2025-11-23

Tags

API WrapperCountriesGeographyExternal DataPython