GnistAI GnistAI
Log in

Country Information

Detailed information on world countries — codes, capitals, population, currencies, languages, and more.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 type: open dataset type type open dataset open dataset lifecycle: maintained lifecycle lifecycle maintained maintained Reference

Data source: Embedded (ISO 3166)

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/country-info/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (5)

get_country

Get detailed information about a country by ISO code (alpha-2 or alpha-3).

Args:
code: ISO 3166-1 alpha-2 (e.g. "NO") or alpha-3 (e.g. "NOR") country code.

Returns:
Dictionary with country details including capital, population, currencies, and more.

ParameterTypeRequiredDescription
codestringrequired
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_country",
    "arguments": {
      "code": "example"
    }
  }
}
search_countries

Search countries by name (case-insensitive partial match).

Args:
query: Search string to match against country names.
limit: Maximum number of results to return (default 10).

Returns:
Dictionary with count and list of matching countries.

ParameterTypeRequiredDescription
querystringrequired
limitintegeroptional (default: 10)
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "search_countries",
    "arguments": {
      "query": "example"
    }
  }
}
list_countries_by_region

List all countries in a given region.

Args:
region: Region name — one of Africa, Americas, Asia, Europe, Oceania.

Returns:
Dictionary with region, count, and list of countries.

ParameterTypeRequiredDescription
regionstringrequired
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "list_countries_by_region",
    "arguments": {
      "region": "example"
    }
  }
}
get_country_stats

Get summary statistics about countries in the database.

Returns:
Dictionary with total countries, UN members, landlocked count, breakdown by region, and total population.

JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_country_stats",
    "arguments": {}
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/mcp/country-info/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_country", "arguments": {"code": "example"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/country-info/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_country",
    "arguments": {
      "code": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Reference)

Resources