lookup_ifsc
Find Indian bank branch details using IFSC codes to verify banking information for transactions. Returns bank name, branch address, and supported payment methods like IMPS/RTGS/NEFT/UPI.
Instructions
Lookup Indian bank IFSC code. Returns bank, branch, address, IMPS/RTGS/NEFT/UPI support. Cost: $0.001 USDC. Service: ifsclookup.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ifsc | Yes | 11-character IFSC code |
Implementation Reference
- src/index.ts:166-223 (handler)The codebase is a dynamic MCP server that fetches tools from a remote registry. 'lookup_ifsc' is not hardcoded but loaded dynamically from the remote configuration. This handler dynamically executes any tool found in the registry by its name, including 'lookup_ifsc' if present in the fetched configuration.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; let registry: Registry; try { registry = await fetchRegistry(); } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Failed to fetch tool registry", detail: String(error) }), }, ], }; } const tool = registry.tools.find((t) => t.name === name); if (!tool) { return { content: [ { type: "text", text: JSON.stringify({ error: `Tool '${name}' not found`, available_tools: registry.tools.map((t) => t.name), }), }, ], }; } try { const result = await callTool(tool, args as Record<string, unknown>); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Tool call failed", tool: name, service: tool.service, detail: String(error), }), }, ], }; } });