npm @mastercard/developers-mcpstdioMITupdated 2mo ago
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.
Mastercard Developers MCP 能做什么?
Mastercard Developers Agent Toolkit
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.
Key Features
- Service Discovery: Enables agents to programmatically discover available services on the Mastercard Developers platform.
- Integration Guide Access: Provides access to detailed documentation and integration guides.
- Flexible Deployment: Can be run as a standalone server or integrated as a library in TypeScript/JavaScript projects.
- MCP-Based: Built on the Model Context Protocol (MCP) for standardized communication.
Supported Tool Calls
The toolkit provides the following tools for agents to use:
Services
get-services-list: Lists all available Mastercard Developers Products and Services with their basic information including title, description, and service id.
Documentation
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.
API Operations
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.
Model Context Protocol
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
Installation
If you want to use the package in your project, you can install it using npm:
npm install --save @mastercard/developers-agent-toolkit
Requirements
- Node 18+
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
Contributing
Contributions are welcome. Please feel free to submit a pull request or open an issue to report a bug or suggest a feature.
License
This project is licensed under the MIT License. See the LICENSE file for details.
安装
把 Mastercard Developers MCP 添加到你的客户端。选择你正在使用的那个。
claude mcp add developers-mcp -- npx -y @mastercard/developers-mcpcodex mcp add developers-mcp -- npx -y @mastercard/developers-mcpamp mcp add developers-mcp -- npx -y @mastercard/developers-mcp{
"mcpServers": {
"developers-mcp": {
"command": "npx",
"args": [
"-y",
"@mastercard/developers-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"developers-mcp": {
"command": "npx",
"args": [
"-y",
"@mastercard/developers-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"developers-mcp","command":"npx","args":["-y","@mastercard/developers-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"developers-mcp": {
"command": "npx",
"args": [
"-y",
"@mastercard/developers-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"developers-mcp": {
"command": "npx",
"args": [
"-y",
"@mastercard/developers-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"developers-mcp": {
"command": "npx",
"args": [
"-y",
"@mastercard/developers-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"developers-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@mastercard/developers-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"developers-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@mastercard/developers-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @mastercard/developers-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档22/25
- 维护16/25
- 可信度16/20
- 能力0/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 71 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.1.0最新 | 2026年3月25日 |