{
  "markdown": "<!-- mcp-name: io.github.gregario/lego-oracle -->\n<p align=\"center\">\n  <h1 align=\"center\">LEGO Oracle</h1>\n  <p align=\"center\">LEGO sets, parts, minifigs, and inventories. An MCP server.</p>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/lego-oracle\"><img src=\"https://img.shields.io/npm/v/lego-oracle.svg\" alt=\"npm version\"></a>\n  <a href=\"https://www.npmjs.com/package/lego-oracle\"><img src=\"https://img.shields.io/npm/dm/lego-oracle.svg\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/gregario/lego-oracle/blob/main/LICENSE\"><img src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT Licence\"></a>\n  <a href=\"https://nodejs.org\"><img src=\"https://img.shields.io/badge/node-%3E%3D18-brightgreen.svg\" alt=\"Node.js 18+\"></a>\n  <a href=\"https://modelcontextprotocol.io\"><img src=\"https://img.shields.io/badge/MCP-compatible-purple.svg\" alt=\"MCP Compatible\"></a>\n  <a href=\"https://glama.ai/mcp/servers/gregario/lego-oracle\"><img src=\"https://glama.ai/mcp/servers/gregario/lego-oracle/badges/score.svg\" alt=\"lego-oracle MCP server\"></a>\n</p>\n\n---\n\nAsk your AI assistant about LEGO sets, find specific bricks, look up minifigures, browse themes, and compare sets. All backed by Rebrickable's catalog (26k sets, 62k parts, 17k minifigs), not hallucinations.\n\n**10 tools. Zero config. Works with every MCP-compatible IDE.**\n\n[![lego-oracle MCP server](https://glama.ai/mcp/servers/gregario/lego-oracle/badges/card.svg)](https://glama.ai/mcp/servers/gregario/lego-oracle)\n[![gregario/lego-oracle MCP server](https://glama.ai/mcp/servers/gregario/lego-oracle/badges/score.svg)](https://glama.ai/mcp/servers/gregario/lego-oracle)\n\n## Install\n\n```bash\nnpx -y lego-oracle\n```\n\n### Add to your IDE\n\n<details open>\n<summary><strong>Claude Code</strong></summary>\n\n```bash\nclaude mcp add lego-oracle -- npx -y lego-oracle\n```\n</details>\n\n<details>\n<summary><strong>Claude Desktop</strong></summary>\n\nAdd to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%/Claude/claude_desktop_config.json` (Windows):\n```json\n{\n  \"mcpServers\": {\n    \"lego-oracle\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"lego-oracle\"]\n    }\n  }\n}\n```\n</details>\n\n<details>\n<summary><strong>Cursor</strong></summary>\n\nAdd to `.cursor/mcp.json`:\n```json\n{\n  \"mcpServers\": {\n    \"lego-oracle\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"lego-oracle\"]\n    }\n  }\n}\n```\n</details>\n\n<details>\n<summary><strong>VS Code (Copilot)</strong></summary>\n\nAdd to `.vscode/mcp.json`:\n```json\n{\n  \"servers\": {\n    \"lego-oracle\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"lego-oracle\"]\n    }\n  }\n}\n```\n</details>\n\n<details>\n<summary><strong>Windsurf</strong></summary>\n\nAdd to `~/.codeium/windsurf/mcp_config.json`:\n```json\n{\n  \"mcpServers\": {\n    \"lego-oracle\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"lego-oracle\"]\n    }\n  }\n}\n```\n</details>\n\n<details>\n<summary><strong>Zed</strong></summary>\n\nAdd to `settings.json`:\n```json\n{\n  \"context_servers\": {\n    \"lego-oracle\": {\n      \"command\": {\n        \"path\": \"npx\",\n        \"args\": [\"-y\", \"lego-oracle\"]\n      }\n    }\n  }\n}\n```\n</details>\n\n## Tools\n\n### Set Tools\n\n| Tool | Description |\n|------|-------------|\n| `search_sets` | Search for sets by name, theme, year, or piece count. Full-text search with filters. |\n| `get_set` | Get complete set details: inventory (grouped by part category), minifigures, theme hierarchy. |\n| `compare_sets` | Compare 2-4 sets side by side: piece count, year, theme, minifigs, shared parts. |\n\n### Part Tools\n\n| Tool | Description |\n|------|-------------|\n| `search_parts` | Search parts by name, category, colour, or material. |\n| `get_part` | Get part details including available colours and mold/print variants. |\n| `find_part_in_sets` | Find which sets contain a specific part (optionally in a specific colour), sorted by quantity. |\n\n### Minifig Tools\n\n| Tool | Description |\n|------|-------------|\n| `search_minifigs` | Search minifigures by name. |\n| `get_minifig` | Get minifig details and every set it appears in. |\n\n### Discovery Tools\n\n| Tool | Description |\n|------|-------------|\n| `browse_themes` | Browse the LEGO theme hierarchy. Top-level themes or drill into sub-themes with set counts. |\n| `find_mocs` | Find community alternate builds (MOCs) for a set's parts. |\n\n## Data\n\nAll data is embedded at build time from Rebrickable. No network calls at runtime.\n\n| Category | Count |\n|----------|-------|\n| Sets | 26,339 |\n| Parts | 61,702 |\n| Colours | 275 |\n| Minifigures | 16,646 |\n| Inventory entries | 1,483,652 |\n| Part relationships | 35,757 |\n| Themes | 490 |\n\nData is updated daily via GitHub Actions. New npm versions are published automatically when Rebrickable data changes.\n\n## Development\n\n```bash\nnpm install\nnpm run build\nnpm test             # 141 tests\n```\n\nTo refresh data from Rebrickable:\n\n```bash\nnpm run fetch-data\nnpm run build\n```\n\n## Attribution\n\nData from [Rebrickable](https://rebrickable.com). LEGO is a trademark of the LEGO Group. This project is not produced by or endorsed by the LEGO Group.\n\n## License\n\nMIT\n",
  "bytes": 5081,
  "sha": "08f241ebd883e6bdc6e51a5a8ecb2a1d0f8450d5d9e1ef96405fcab09f3ba4c5",
  "repo_slug": "gregario/lego-oracle",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_gregario_lego_oracle_ff7794c1/readme"
}