GnistAI GnistAI
Log in

Country Information

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

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Reference

Data source: Embedded (ISO 3166)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/country-info/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-country-info": {
      "url": "https://context.gnist.ai/mcp/country-info/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
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"}}}'

API REST API

API Root https://context.gnist.ai/rest/country-info/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/country-info/get_country?code=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/country-info/get_country",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "code": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc country-info

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

get_country
Get detailed information about a country by ISO code (alpha-2 or alpha-3).
ParameterTypeRequiredDescription
codestringrequired
search_countries
Search countries by name (case-insensitive partial match).
ParameterTypeRequiredDescription
querystringrequired
limitintegeroptional (default: 10)
list_countries_by_region
List all countries in a given region.
ParameterTypeRequiredDescription
regionstringrequired
get_country_stats
Get summary statistics about countries in the database.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related