Country Generator MCP Server
Random countries, flags, capitals and geography quizzes for AI assistants
About
Country Generator brings countrygenerator.com to your AI assistant. Generate a random country and get its flag, capital, population, region and map details, or pull facts about any country by name. It can also run geography quizzes on flags, capitals, country shapes, populations and borders right in the chat. It's a remote server, so there's nothing to install: just connect to the endpoint. Great for students, teachers, trivia fans, travellers looking for inspiration and anyone building geography games or learning tools.
Security Report
No server source code was provided, only a README describing a hosted, read-only, unauthenticated Streamable HTTP endpoint for country and quiz lookups. The stated purpose fits the network_http permission, but the implementation cannot be verified, so the score is capped in the fair range. The main open items are unverified server-side behavior and a documentation mismatch about where the code lives.
1 file analyzed · 4 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"country-generator": {
"url": "https://countrygenerator.com/mcp"
}
}
}Getting Started
Once installed, try these example prompts and explore these capabilities:
- 1"Give me a random country with its flag and capital"
- 2"What is the capital and population of Portugal?"
- 3"Quiz me on European flags"
- 4"Pick a random country in Africa for my next trip idea"
- 5"Start a capitals quiz with 10 questions"
Documentation
View on GitHubFrom the project's GitHub README.
Country Generator MCP Server
Look up any country's capital, population and borders, or play geography quizzes with your AI.
This repository holds the documentation and registration metadata for the hosted server. The server itself runs at countrygenerator.com.
- Endpoint:
https://countrygenerator.com/mcp - Transport: Streamable HTTP
- Authentication: None
- Documentation: countrygenerator.com/mcp
Tools
| Tool | What it does |
|---|---|
get_country | Facts about one country: capital, region, population, area, languages, currencies, driving side and neighbours. |
search_countries | Lists countries by part of a name or capital, by continent, or landlocked only. |
random_country | Picks a random country, optionally from one continent. |
compare_population | Ranks 2 to 4 countries by population. |
get_borders | Lists the countries that share a land border with a country. |
create_quiz | Creates questions on flags, capitals, country outlines, population or neighbours. |
check_answer | Checks one quiz answer and returns the right answer, some facts and the new score. |
Every tool is read-only. Names and answers work in English, German, Spanish, French, Portuguese, Japanese and Italian. Country lookups accept a name in any of those languages or an ISO code.
Each quiz question carries an encrypted ticket that holds the answer, so the assistant cannot give it away early. A run ends after three wrong answers. Quizzes have easy, medium and hard levels and can be limited to one continent.
The server also has a quiz_me prompt for clients that show prompts.
Connect
Claude
- Open Customize, then Connectors.
- Select + Add, then Add custom connector.
- Enter Country Generator as the name and
https://countrygenerator.com/mcpas the URL, then select Continue. - Under Authentication, choose No sign in, then select Add.
Claude Code
claude mcp add --transport http country-generator https://countrygenerator.com/mcp
Cursor
Add this to ~/.cursor/mcp.json:
{
"mcpServers": {
"country-generator": {
"url": "https://countrygenerator.com/mcp"
}
}
}
VS Code
Add this to .vscode/mcp.json:
{
"servers": {
"country-generator": {
"type": "http",
"url": "https://countrygenerator.com/mcp"
}
}
}
Gemini CLI
gemini extensions install https://github.com/countrygenerator/mcp-server
ChatGPT
- Open ChatGPT Plugins in your browser.
- Select the plus button, then Add custom MCP server.
- Enter Country Generator as the name and
https://countrygenerator.com/mcpas the server URL. - Review the permissions and warning, then select Create as a plugin.
- Install the resulting plugin, start a new conversation and select it using
@.
Grok
- Open Grok Connectors.
- Select New Connector, then Custom.
- Enter
https://countrygenerator.com/mcpas the MCP server URL. This server requires no authentication. - Complete the setup to make the tools available in conversations.
Other MCP clients
Where custom remote MCP connections are available, use https://countrygenerator.com/mcp with Streamable HTTP.
Example prompts
- What is the capital of Kazakhstan, and which countries border it?
- Which has more people: Nigeria, Brazil or Japan?
- Quiz me on African flags, hard mode.
- Give me 10 capital questions about Asia, in German.
Limits
To maintain service stability, security, and fair usage, the API enforces server-side rate limiting and request validation.
- Rate Limiting: Requests are subject to usage restrictions to prevent excessive traffic and automated abuse.
- Limit Exceeded: Requests exceeding permitted thresholds receive an HTTP
429 Too Many Requestsresponse with aRetry-Afterheader. - Quiz Generation: The
create_quizendpoint enforces request and question-generation limits. - Ticket Validity: Quiz tickets are temporary and automatically expire after a predefined period.
- Abuse Prevention: Additional restrictions may be applied to suspicious or excessive activity.
Support
For bug reports and questions, open an issue.
Reviews
No reviews yet
Be the first to review this server!
More Education & Research MCP Servers
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Lharries · Communication
Read, search, and send WhatsApp messages through your AI assistant
FinAgent
Freeby mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.
Memory
Freeby Modelcontextprotocol · Productivity
Knowledge graph-based persistent memory across sessions