This connects your agent directly to Mastercard's developer platform for API discovery and integration research. You get tools to list available services, pull documentation sections, and inspect API operation details including parameters and schemas. It also surfaces integration guides for OAuth 1.0a, OAuth 2.0, and Open Finance flows. Reach for this when you're building payment or financial services integrations and want your agent to navigate Mastercard's API catalog, understand endpoint requirements, or pull authentication setup instructions without leaving the conversation. Runs over stdio and requires Node 18+.
The Mastercard Developers Agent Toolkit allows popular agent frameworks (currently Model Context Protocol - MCP) to integrate with Mastercard Developers for service discovery and integration guides.
The toolkit provides the following tools for agents to use:
get-services-list: Lists all available Mastercard Developers Products and Services with their basic information including title, description, and service id.get-documentation: Provides an overview of all available documentation for a specific Mastercard service including section titles, descriptions, and navigation links.get-documentation-section-content: Retrieves the complete content for a specific documentation section.get-documentation-page: Retrieves the complete content of a specific documentation page.get-oauth10a-integration-guide: Retrieves the comprehensive OAuth 1.0a integration guide.get-oauth20-integration-guide: Retrieves the comprehensive OAuth 2.0 integration guide.get-openfinance-integration-guide: Retrieves the comprehensive Open Finance integration guide.get-api-operation-list: Provides a summary of all API operations for a specific Mastercard API specification including HTTP methods, request paths, titles, and descriptions.get-api-operation-details: Provides detailed information about a specific API operation including parameter definitions, request and response schemas, and technical specifications.We provide a standalone Model Context Protocol (MCP) server that can be used with MCP clients.
npx -y @mastercard/developers-mcp
For more details for the configuration options, see modelcontextprotocol directory
If you want to use the package in your project, you can install it using npm:
npm install --save @mastercard/developers-agent-toolkit
Requirements
import { MastercardDevelopersAgentToolkit } from "@mastercard/developers-agent-toolkit/mcp";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new MastercardDevelopersAgentToolkit({});
async function main() {
const transport = new StdioServerTransport();
await server.connect(transport);
console.error("Mastercard Developers MCP Server running on stdio");
}
main().catch((error) => {
console.error("Fatal error in main():", error);
process.exit(1);
});
For more details, checkout typescript directory
Contributions are welcome. Please feel free to submit a pull request or open an issue to report a bug or suggest a feature.
This project is licensed under the MIT License. See the LICENSE file for details.
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent