# MCPay > The best way for AI to access and pay for online services. MCPay lets AI clients and developers use and monetize MCP servers with on-chain pay-per-call payments through a single account. MCPay is open-source infrastructure that enables pay-per-use access to APIs and MCP servers using on-chain payments via the x402 protocol. Users can consume paid tools with one account, set per-call pricing, and receive payments automatically. The proxy coordinates wallets, clients, and upstream services to handle payments, confirmations, and request retries. - Type: Project - Sector: Payments - Status: Active - Founded: 2025-07-01 - Profile: https://thegrid.id/profiles/mcpay ## Products - [MCPay](https://thegrid.id/profiles/mcpay): MCPay is an open-source payment layer for Model Context Protocol servers that lets users access paid APIs with pay-per-call pricing instead of subscriptions. It proxies requests, negotiates x402 payment, accepts on-chain payment, retries the MCP call after confirmation, and streams usage and revenue events. (Merchant Payment Gateway, In Development, Main Product) - [MCPay SDK](https://thegrid.id/profiles/mcpay): MCPay SDK is a developer library that adds x402 wallet payment handling to MCP clients or custom apps. It intercepts 402 responses, pays on-chain with a configured wallet, and retries the tool call for programmatic pay-per-call access. (Developer Tooling, Live) ## Links - [Main](https://mcpay.tech) - [Documentation](https://docs.mcpay.tech) - [Twitter / X](https://x.com/mcpaytech) - [GitHub](https://github.com/microchipgnu/mcpay) - [Telegram](https://t.me/mcpay_tech) ## Legal This data is provided under two licensing models. Model 1 - open data. The open data core is licensed under the Open Database License (ODbL) — a copyleft/share-alike license allowing free use, modification, and sharing for any purpose. Attribution is required: include "Powered by The Grid" linking to https://thegrid.id wherever the data is used. Derivative databases must be shared under ODbL terms. Trademarks, logos, and brand names (marked "Special TPIP") are not covered by the ODbL. For ML/AI use: training datasets that substantially extract ODbL data are Derivative Databases and must be shared under ODbL if publicly used; models must be attributed in documentation. Model 2 - commercial licenses. The Grid Data Service (TGDS) is also available as a commercial license. See [Web Services Terms](https://about.thegrid.id/legal/web-services-terms) for commercial use that is not covered by the open data service. The following applies to both licensing models. - All data is provided AS IS with no guarantees of accuracy. - The Grid does not provide investment, legal, or tax advice, and - a project's presence in The Grid's data does not imply endorsement. - [Data Licensing & Disclaimers](https://about.thegrid.id/legal/data-licensing-and-disclaimers): Licensing models and disclaimers - [Open Data (ODbL)](https://about.thegrid.id/legal/open-data): Open Database License terms and scope for The Grid's open data service. - [Attribution Guidelines](https://about.thegrid.id/legal/open-data-attribution-guidelines): How to attribute The Grid's data when using the open data service. - [Web Services Terms](https://about.thegrid.id/legal/web-services-terms): commercial Terms for using data services. - [All Legal Documents](https://about.thegrid.id/legal): Full index of terms, policies, and disclosures ## Optional - [TGS Field Descriptions](https://github.com/The-Grid-Data/workspace-public/blob/main/references/tgs-field-descriptions.md): Schema field definitions for The Grid's data model - [TGS JSON Structure](https://github.com/The-Grid-Data/workspace-public/blob/main/references/tgs-json-structure.md): Data model structure and relationships - [Product Type Definitions](https://github.com/The-Grid-Data/workspace-public/blob/main/references/product-type-definitions.md): Definitions for each product type - [Product Type Classification](https://github.com/The-Grid-Data/workspace-public/blob/main/references/product-type-classification.md): Guide for classifying products into types - [Grid MCP Guide](https://github.com/The-Grid-Data/workspace-public/blob/main/grid-search/skills/grid-query/references/grid-mcp-guide.md): How to query The Grid programmatically via MCP