A minimal MCP (Model Context Protocol) server that provides access to AEM block metadata from blocks.json.
This server exposes a single tool: list_blocks - which reads AEM block information from a blocks.json file and returns structured data about all available blocks.
npm installnode index.jsThe server automatically looks for blocks.json in the current directory or parent directories.
Lists all available AEM blocks with metadata from blocks.json.
Input: None required Output: JSON with block information including names, descriptions, file paths, and file counts.
@modelcontextprotocol/sdk- MCP server implementationfs-extra- Enhanced file system operationszod- Schema validation
To use this server with an MCP client (like Claude Desktop or Cline), add this configuration:
{
"mcpServers": {
"aem-block-collection": {
"command": "node",
"args": ["https://github.com/ACSGenUI/mcp-block-collection#main"],
"env": {}
}
}
}Note: Replace https://github.com/ACSGenUI/mcp-block-collection with the actual node module name of the server.