Claude Code
Add the remote server from your terminal.
claude mcp add --transport http tgvalidator https://tgvalidator.com/mcp --header "Authorization: Bearer YOUR_API_KEY"Connect an MCP-compatible client to run single checks, batch-check up to 100 numbers, list products, and read your balance with the same API key.
The Model Context Protocol lets AI applications call external tools during a conversation. Ask your assistant to check a number or review a batch without writing a separate API integration.
Use the exact same API key as the REST API and add it as a Bearer token in your MCP client configuration.
Authorization: Bearer YOUR_API_KEYOnly add the key to your own trusted client configuration. Never expose it in browser code or public prompts.
Point your client to the official Streamable HTTP endpoint. No local MCP process is required.
http://localhost:14004/mcpRequests use JSON-RPC over Streamable HTTP and the same API-key middleware as REST.
Replace YOUR_API_KEY with the key from Settings.
Add the remote server from your terminal.
claude mcp add --transport http tgvalidator https://tgvalidator.com/mcp --header "Authorization: Bearer YOUR_API_KEY"Add this server entry to the client's MCP configuration.
{
"mcpServers": {
"tgvalidator": {
"url": "https://tgvalidator.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Use Streamable HTTP with the endpoint and Bearer header above.
URL: https://tgvalidator.com/mcp
Authorization: Bearer YOUR_API_KEYThe tools are scoped to the app that owns your API key. Call list_products first when you need to discover valid product codes.
list_productsLists products, prices, billing multipliers, and response fields.
No parameterscheck_numberChecks one E.164 phone number synchronously. registered is the primary result.
service_type · string · required
identifier · string · requiredcheck_numbersChecks 1–100 numbers with one service_type and preserves input order.
service_type · string · required
identifiers · string[] · required · max 100get_balanceReads the current account balance without charging it.
No parametersAfter connecting, ask your assistant in plain language:
Tool failures use isError=true and the same code, msg, data contract as the API.
{
"code": 42900,
"msg": "rate limit exceeded",
"data": null
}40100Check the Bearer header and confirm the key is active.
40200Check the balance or top up before retrying.
42900 / 42901Wait for the rate window or in-flight checks to clear.
40000 / 40002Use a product returned by list_products and E.164 numbers.
42200 / 50300Do not classify the number as unregistered; retry later.
Create an account, copy your API key, and start checking from your preferred MCP client.