Reference
Data source: Wikimedia Foundation
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/wikipedia/
claude_desktop_config.json
{
"mcpServers": {
"gnist-wikipedia": {
"url": "https://context.gnist.ai/mcp/wikipedia/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/wikipedia/" \
-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": "search_articles", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/wikipedia/
4 endpoints available:
GET /rest/wikipedia/search_articlesGET /rest/wikipedia/get_article_summaryGET /rest/wikipedia/get_article_sectionsGET /rest/wikipedia/report_feedback
Shell
curl "https://context.gnist.ai/rest/wikipedia/search_articles?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/wikipedia/search_articles",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc wikipedia
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (4)
search_articlesSearch Wikipedia articles by keyword.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search query — keywords or phrases to find Wikipedia articles. |
limit | integer | optional | Max results to return (default 5, max 20). (default: 5) |
get_article_summaryGet a concise summary of a Wikipedia article.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | required | Wikipedia article title (e.g. 'Artificial intelligence', 'Oslo'). |
get_article_sectionsGet the full section structure and content of a Wikipedia article.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | required | Wikipedia article title (e.g. 'Machine learning', 'Norway'). |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |