Data source: Well-known public BIN prefix ranges
https://context.gnist.ai/mcp/bin-lookup/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (3)
lookup_binIdentify the card brand, type, and category from a Bank Identification Number (BIN).
Matches the input against well-known public BIN prefix ranges for Visa,
Mastercard, American Express, Discover, JCB, UnionPay, Diners Club, and Maestro.
Args:
bin_digits: The first 6-8 digits of a payment card number.
| Parameter | Type | Required | Description |
|---|---|---|---|
bin_digits | string | required | First 6-8 digits of a payment card number. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "lookup_bin",
"arguments": {
"bin_digits": "123456789"
}
}
}get_card_brandsList all card brands that can be identified from BIN prefixes.
Returns the sorted list of known card brands (e.g. Visa, Mastercard, etc.).
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_card_brands",
"arguments": {}
}
}report_feedbackReport 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") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
curl -X POST "https://context.gnist.ai/mcp/bin-lookup/" \
-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": "lookup_bin", "arguments": {"bin_digits": "example"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/bin-lookup/",
headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "lookup_bin",
"arguments": {
"bin_digits": "example"
}
}
},
)
print(resp.json())