Magento 2 GraphQL Documentation MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAGENTO_GRAPHQL_DOCS_PATH | No | Path to the Magento 2 GraphQL documentation directory (from commerce-webapi/src/pages/graphql). Can be absolute, relative, or home directory relative path. | |
| MAGENTO_GRAPHQL_DOCS_TOP_K | No | Number of search results to return | 5 |
| MAGENTO_GRAPHQL_DOCS_DB_PATH | No | Custom path where the SQLite database should be stored | ~/.mcp/magento-graphql-docs/database.db |
| MAGENTO_GRAPHQL_DOCS_MAX_FIELDS | No | Maximum fields per GraphQL element | 20 |
| MAGENTO_GRAPHQL_DOCS_CODE_PREVIEW | No | Maximum code preview length in characters | 400 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_documentationA | Search Magento 2 GraphQL documentation by keywords. Use SHORT keyword queries (1-3 words) to find documentation pages. Can filter by category, subcategory, or content type. |
| get_documentB | Retrieve complete documentation page by file path |
| search_graphql_elementsB | Search for GraphQL queries, mutations, types, or interfaces |
| get_element_detailsA | Get complete details about a specific GraphQL element |
| list_categoriesA | List all documentation categories with document counts |
| get_tutorialB | Get complete tutorial with all steps in order |
| search_examplesC | Search for code examples by topic and language |
| get_related_documentsB | Find documents related to the specified document |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/magento-graphql-docs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server