Data source: Free Dictionary API (Wiktionary)
Overview
Dictionary wraps Free Dictionary API (Wiktionary), handling authentication, pagination, and rate limits for you. This tutorial covers all 3 tools with working code examples you can copy and run.
Prerequisites
- Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
- Choose your integration method: MCP protocol or REST API.
Connect via MCP
Add to your MCP client config (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"gnist-dictionary": {
"url": "https://context.gnist.ai/mcp/dictionary/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Tools (3)
define_word
Look up an English word — definitions, pronunciations, examples, synonyms, and antonyms. Returns comprehensive dictionary data including part of speech, multiple definitions, usage examples, phonetic transcriptions, and audio pronunciation URLs.
| Parameter | Type | Required | Description |
|---|---|---|---|
word | string | required | English word to look up (e.g. 'serendipity', 'ephemeral'). |
curl -X POST "https://context.gnist.ai/mcp/dictionary/" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "define_word", "arguments": {"word": "'serendipity'"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/dictionary/",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={'id': 1,
'jsonrpc': '2.0',
'method': 'tools/call',
'params': {'arguments': {'word': "'serendipity'"}, 'name': 'define_word'}},
)
print(resp.json())
get_synonyms
Get synonyms and antonyms for an English word. Aggregates all synonyms and antonyms from across all meanings and definitions.
| Parameter | Type | Required | Description |
|---|---|---|---|
word | string | required | English word to find synonyms and antonyms for. |
curl -X POST "https://context.gnist.ai/mcp/dictionary/" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_synonyms", "arguments": {"word": "example"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/dictionary/",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={'id': 1,
'jsonrpc': '2.0',
'method': 'tools/call',
'params': {'arguments': {'word': 'example'}, 'name': 'get_synonyms'}},
)
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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: general) |
curl -X POST "https://context.gnist.ai/mcp/dictionary/" \
-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/dictionary/",
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 Dictionary provide?
English dictionary — definitions, pronunciations, synonyms, antonyms, and usage examples. It exposes 3 tools: define_word, get_synonyms, 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 Dictionary API return?
JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.