Data source: Embedded (ISO 3166)
https://context.gnist.ai/mcp/country-info/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (5)
get_countryGet 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
code | string | required |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_country",
"arguments": {
"code": "example"
}
}
}search_countriesSearch 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | |
limit | integer | optional | (default: 10) |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "search_countries",
"arguments": {
"query": "example"
}
}
}list_countries_by_regionList 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
region | string | required |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "list_countries_by_region",
"arguments": {
"region": "example"
}
}
}get_country_statsGet summary statistics about countries in the database.
Returns:
Dictionary with total countries, UN members, landlocked count, breakdown by region, and total population.
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_country_stats",
"arguments": {}
}
}report_feedbackReport 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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
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"}}}'
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())