{"openapi":"3.1.0","info":{"title":"Library","version":"1.0.0","description":"The MCP Library. Every tool. One connection. Find any MCP server, inspect it, and know how to pay for it — in one call.","contact":{"name":"Library","url":"https://librarymcp.vercel.app/"}},"servers":[{"url":"https://librarymcp.vercel.app"}],"paths":{"/api/find":{"post":{"operationId":"find","summary":"Library Find","description":"Find the right MCP server for a task: search 25,000+ servers across the Official Registry and Glama, ranked, with the best match inspected — endpoint, tools and payment protocol.","security":[{"x402":[]}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Server name (e.g. 'GitHub') or a task/capability in natural language (e.g. 'send emails', 'search the web')."},"limit":{"type":"number","description":"Optional max results to return (default 10, max 50)."}},"required":["query"]},"example":{"query":"send emails","limit":10}}}},"responses":{"200":{"description":"Successful result. Payment settles only on this response."},"402":{"description":"Payment required. The response carries an x402 v2 payment challenge in the Payment-Required header: pay in USDC on Base and retry the POST with the payment payload. No API key or account is needed."},"502":{"description":"The call failed upstream. Failed calls are never charged."}}}},"/api/inspect":{"post":{"operationId":"inspect","summary":"Library Inspect","description":"Inspect any MCP server before you connect: full metadata, tool list, endpoint and detected payment protocol (x402, MPP or prepaid), from its name, URL or a keyword.","security":[{"x402":[]}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"identifier":{"type":"string","description":"Reverse-DNS name, endpoint URL, or plain keyword/name of the MCP server to inspect."}},"required":["identifier"]},"example":{"identifier":"GitHub"}}}},"responses":{"200":{"description":"Successful result. Payment settles only on this response."},"402":{"description":"Payment required. The response carries an x402 v2 payment challenge in the Payment-Required header: pay in USDC on Base and retry the POST with the payment payload. No API key or account is needed."},"502":{"description":"The call failed upstream. Failed calls are never charged."}}}},"/api/catalog":{"get":{"operationId":"catalog","summary":"Library Catalog (free)","description":"Live status and server counts for all registries Library searches. Free — no payment required. Same data as the MCP catalog tool.","responses":{"200":{"description":"Catalog of sources with live counts."}}}}},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"x402 v2 payment payload. Call unpaid first to receive the 402 challenge, sign the USDC payment on Base, then retry with this header."}}}}