This is an MCP (Model Context Protocol) server that provides tools to search and retrieve Magento 2 REST API documentation. It parses OpenAPI 3.0 swagger.json files, maintains a local SQLite database with FTS5 indexing, and exposes 5 tools via FastMCP over STDIO.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"magento-api": {
"command": "magento-api-mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A local STDIO MCP server that provides tools to search and retrieve Magento 2 REST API documentation from OpenAPI (swagger) specifications.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools / ecommerce
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
MCP Security Weekly
Get CVE alerts and security updates for Magento Api Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A local STDIO MCP server that provides tools to search and retrieve Magento 2 REST API documentation from OpenAPI (swagger) specifications.
cd magento-api-mcp
pip install -e .
magento-api-mcp
The server starts immediately and parses the swagger.json file on first run or when the file has been modified.
~/.mcp/magento-api/database.db
MAGENTO_API_DB_PATH environment variabledata/swagger.json in the package directory
MAGENTO_API_SWAGGER_PATH environment variableConfigure your MCP client to run the magento-api-mcp command:
{
"mcpServers": {
"magento-api": {
"command": "magento-api-mcp"
}
}
}
Or with custom swagger file:
{
"mcpServers": {
"magento-api": {
"command": "magento-api-mcp",
"env": {
"MAGENTO_API_SWAGGER_PATH": "/path/to/your/swagger.json"
}
}
}
}
search_endpointsSearch for API endpoints using keywords.
Parameters:
queries: List of 1-3 short keyword queries (e.g., ["cart", "customer"])filter_by_method: Optional HTTP method filter (GET, POST, PUT, DELETE)filter_by_tag: Optional category filter (e.g., "carts/mine")Example:
search_endpoints(queries=["cart operations"], filter_by_method="GET")
get_endpoint_detailsGet complete documentation for a specific endpoint.
Parameters:
path: Exact API path (e.g., "/V1/carts/mine")method: Optional HTTP method (if omitted, returns all methods for this path)Example:
get_endpoint_details(path="/V1/carts/mine", method="GET")
Returns:
list_tagsList all available API category tags.
Returns: Hierarchical list of all endpoint categories with counts.
search_schemasSearch for data schemas/models by keyword.
Parameters:
query: Keyword to search forExample:
search_schemas(query="customer")
get_schemaGet complete definition of a schema/model.
Parameters:
schema_name: Exact schema name (e.g., "quote-data-cart-interface")Returns: Full schema with type, description, and all properties in JSON format.
Test each component independently:
# Test the OpenAPI parser
python3 tests/verify_parser.py
# Test database ingestion
python3 tests/verify_db.py
# Test MCP server and all tools
python3 tests/verify_server.py
The server uses SQLite with the following tables: