Data source: Unicode Consortium (CLDR)
Overview
Emoji Database wraps Unicode Consortium (CLDR), handling authentication, pagination, and rate limits for you. This tutorial covers all 6 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-emoji-database": {
"url": "https://context.gnist.ai/mcp/emoji-database/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Tools (6)
get_emoji
Get detailed information about an emoji. Returns the emoji character, name, category, subcategory, codepoint, shortcodes, keywords, and Unicode version.
| Parameter | Type | Required | Description |
|---|---|---|---|
emoji_id | string | required | Emoji ID slug (e.g. grinning-face, red-heart, thumbs-up). |
curl -X POST "https://context.gnist.ai/mcp/emoji-database/" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_emoji", "arguments": {"emoji_id": "grinning-face"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/emoji-database/",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={'id': 1,
'jsonrpc': '2.0',
'method': 'tools/call',
'params': {'arguments': {'emoji_id': 'grinning-face'}, 'name': 'get_emoji'}},
)
print(resp.json())
search_emojis
Search the emoji database.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search by name, keyword, or shortcode. |
limit | integer | optional | (default: 20) |
curl -X POST "https://context.gnist.ai/mcp/emoji-database/" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_emojis", "arguments": {"query": "renewable energy"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/emoji-database/",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={'id': 1,
'jsonrpc': '2.0',
'method': 'tools/call',
'params': {'arguments': {'query': 'renewable energy'},
'name': 'search_emojis'}},
)
print(resp.json())
list_emojis_by_category
List emojis by category.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | string | required | Emoji category (e.g. Smileys & Emotion, People & Body, Flags). |
limit | integer | optional | (default: 50) |
curl -X POST "https://context.gnist.ai/mcp/emoji-database/" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "list_emojis_by_category", "arguments": {"category": "Smileys"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/emoji-database/",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={'id': 1,
'jsonrpc': '2.0',
'method': 'tools/call',
'params': {'arguments': {'category': 'Smileys'},
'name': 'list_emojis_by_category'}},
)
print(resp.json())
get_emoji_categories
List all emoji categories in the database.
curl -X POST "https://context.gnist.ai/mcp/emoji-database/" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_emoji_categories", "arguments": {}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/emoji-database/",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={'id': 1,
'jsonrpc': '2.0',
'method': 'tools/call',
'params': {'arguments': {}, 'name': 'get_emoji_categories'}},
)
print(resp.json())
get_random_emoji
Get a random emoji from the database.
curl -X POST "https://context.gnist.ai/mcp/emoji-database/" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_random_emoji", "arguments": {}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/emoji-database/",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={'id': 1,
'jsonrpc': '2.0',
'method': 'tools/call',
'params': {'arguments': {}, 'name': 'get_random_emoji'}},
)
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/emoji-database/" \
-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/emoji-database/",
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())
Common Patterns
Use
search_emojis to find items, then get_emoji to get full details. This two-step pattern is common for exploring data before drilling down.Several tools support
limit, offset, or page parameters. Start with small limits during development, then increase for production queries.FAQ
What data does Emoji Database provide?
Emoji lookup — search by name, keyword, or shortcode, browse by category. It exposes 6 tools: get_emoji, search_emojis, list_emojis_by_category, get_emoji_categories, get_random_emoji, 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 Emoji Database API return?
JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.