home / mcp / mastercard bin table listing mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-mastercard-bin-table-listing": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "JSON string with MCP server config placeholder",
"SECURITY": "YOUR_SECURITY_PARAMETERS",
"CONFIG_PATH": "mcp_server/mcp_config.json"
}
}
}
}You run an MCP (Model Context Protocol) server that exposes data from a Mastercard BIN Table API. It lets clients query BIN table information through a consistent MCP interface, enabling scalable, protocol-compliant access to the OpenAPI-backed data source.
Use a compatible MCP client to connect to the Mastercard BIN Table Listing MCP server. The server supports multiple transport modes, including standard input/output (stdio). Start the server in stdio mode and interact with it through the client’s MCP protocol adapter. When the server is running, your client can request data from the Mastercard BIN Table Listing data source through MCP requests that correspond to the exposed API surface.
Typical usage pattern with a client is to start the server, then have your client issue requests for BIN table entries, validate responses, and handle errors or rate limits as needed. Ensure your client is configured to communicate using MCP protocol conventions and to target the server transport you selected (stdio in this example).
# Prerequisites
# - Python 3.9+
# 1) Clone the repository
git clone <repository-url>
cd mcp-server
# 2) Install dependencies (dev dependencies included)
# If you are using a development container, you can rely on the container script.
# Otherwise install manually:
pip install -e ".[dev]"
# Alternative using uv (editable):
uv pip install --editable ".[dev]"
# 3) Run tests or lint as needed (optional for setup):
./scripts/test.sh
./scripts/lint.sh# Start the server in stdio mode
python mcp_server/main.py stdio# Environment variables you may use to configure the server
# Path to a JSON configuration file
export CONFIG_PATH=mcp_server/mcp_config.json
# Or inline configuration as a JSON string
export CONFIG='{"mcpServers": {"bin_table": {"type": "stdio"}}}'
# Security-related parameters (if applicable)
export SECURITY=YOUR_SECURITY_PARAMETERSConfiguration, security, and usage details are provided through explicit environment variables and startup commands you use to run the server. Set CONFIG_PATH to the path of your JSON configuration, or set CONFIG to a JSON string with the needed MCP server definitions. If you provide security-related parameters, export them via SECURITY to control access to the MCP server. When starting in stdio mode, the final runtime command is python mcp_server/main.py stdio and the client communicates with the processes through standard input and output streams.