GnistAI GnistAI
Log in

Getting Started with Country Intelligence

Multi-source country profiles — economics, statistics, and knowledge base from World Bank, Eurostat, and Wikidata.

All Tutorials   |   Overview   |   Playground   |   MCP   |   REST API   |   Home
Government

Data source: World Bank, Eurostat, Wikidata

Overview

Country Intelligence builds a holistic view by combining data from World Bank, Eurostat, Wikidata. Rather than querying each source independently, you get a unified interface with 2 tools. This tutorial shows you how to use each one.

Prerequisites

  1. Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
  2. Choose your integration method: MCP protocol or REST API.

Connect via MCP

Add to your MCP client config (Claude Desktop, Cursor, etc.):

MCP Config
{
  "mcpServers": {
    "gnist-country-intelligence": {
      "url": "https://context.gnist.ai/mcp/country-intelligence/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Tools (2)

country_overview

Multi-source country profile — economics, trade, news, crises, and environment. Queries World Bank, Eurostat, Wikidata, UN Comtrade, GDELT, Crisis Intelligence, and Environmental Monitoring for a unified country overview from 7 data sources. Returns partial results if any source is unavailable. Args: country_code: ISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE'). Returns: Merged data with keys: worldbank, eurostat, wikidata, trade, news, crises, environment. Each key contains the upstream response or null if that source failed.

ParameterTypeRequiredDescription
country_codestringrequiredISO 3166-1 alpha-2 country code (e.g. 'NO', 'US', 'DE').
curl -X POST "https://context.gnist.ai/mcp/country-intelligence/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "country_overview", "arguments": {"country_code": "'NO'"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/country-intelligence/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'country_code': "'NO'"}, 'name': 'country_overview'}},
)
print(resp.json())

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)
curl -X POST "https://context.gnist.ai/mcp/country-intelligence/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/country-intelligence/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'feedback': 'example'}, 'name': 'report_feedback'}},
)
print(resp.json())

FAQ

What data does Country Intelligence provide?

Multi-source country profiles — economics, statistics, and knowledge base from World Bank, Eurostat, and Wikidata. It exposes 2 tools: country_overview, report_feedback.

What do I need to get started?

A Gnist API key (free tier: 100 calls/day). Sign up at https://context.gnist.ai/signup.

What format does the Country Intelligence API return?

JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.

Next Steps

Related Tutorials