{"_id":"@nic0xflamel/defillama-mcp-server","name":"@nic0xflamel/defillama-mcp-server","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@nic0xflamel/defillama-mcp-server","keywords":["defillama","api","mcp","server","crypto","modelcontextprotocol"],"version":"0.1.0","license":"MIT","type":"module","exports":{".":"./build/src/index.js"},"types":"./build/src/index.d.ts","scripts":{"build":"tsc --build && chmod +x scripts/cli.cjs","dev":"tsx watch scripts/start-server.ts","test":"jest","start":"node ./bin/scripts/start-server.js","watch":"tsc --build --watch"},"bin":{"defillama-mcp-server":"scripts/cli.cjs"},"dependencies":{"@modelcontextprotocol/sdk":"^1.8.0","axios":"^1.8.4","express":"^4.21.2","form-data":"^4.0.1","mustache":"^4.2.0","openapi-client-axios":"^7.5.5","openapi-schema-validator":"^12.1.3","openapi-types":"^12.1.3","which":"^5.0.0","zod":"3.24.1"},"devDependencies":{"@anthropic-ai/sdk":"^0.33.1","@types/express":"^5.0.0","@types/js-yaml":"^4.0.9","@types/json-schema":"^7.0.15","@types/mustache":"^4.2.5","@types/node":"^20.17.16","@types/which":"^3.0.4","@vitest/coverage-v8":"3.1.1","esbuild":"^0.25.2","multer":"1.4.5-lts.1","openai":"^4.91.1","tsx":"^4.19.3","typescript":"^5.4.5","vitest":"^3.1.1"},"description":"MCP server for the DefiLlama API","repository":{"type":"git","url":"git+https://github.com/nic0flamel/notion-automation.git"},"author":{"name":"Nic Flamel"},"bugs":{"url":"https://github.com/nic0xflamel/defillama-mcp-server/issues"},"homepage":"https://github.com/nic0xflamel/defillama-mcp-server#readme","volta":{"node":"20.11.0"},"_id":"@nic0xflamel/defillama-mcp-server@0.1.0","gitHead":"461492083dbdf862f4c7d61d968c3fcbf0e63c57","_nodeVersion":"20.19.1","_npmVersion":"11.3.0","dist":{"integrity":"sha512-4IuG7z7EIukE5hnzeSFYxB9+3hoGXsofajSxPxgcbnYyMhwixJppBB7p5KCAH7jfPwF1etzciFDCGj20Xm+abw==","shasum":"dfc5b769ebe38383875b129ea5982443a60ca9b7","tarball":"https://registry.npmjs.org/@nic0xflamel/defillama-mcp-server/-/defillama-mcp-server-0.1.0.tgz","fileCount":78,"unpackedSize":426004,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBprB4eT+iTSNiLdKuAlHfPiLGBr5/EjO9zSO5nvLMCeAiBI77wdX3gXbb2lFDpnuQU/d05uFkLdJX+UJNsg7HZK5g=="}]},"_npmUser":{"name":"nic0xflamel","email":"nicflamel0x@gmail.com"},"directories":{},"maintainers":[{"name":"nic0xflamel","email":"nicflamel0x@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/defillama-mcp-server_0.1.0_1746699504511_0.5873044561840386"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-08T10:18:24.442Z","0.1.0":"2025-05-08T10:18:24.705Z","modified":"2025-05-08T10:18:24.933Z"},"maintainers":[{"name":"nic0xflamel","email":"nicflamel0x@gmail.com"}],"description":"MCP server for the DefiLlama API","homepage":"https://github.com/nic0xflamel/defillama-mcp-server#readme","keywords":["defillama","api","mcp","server","crypto","modelcontextprotocol"],"repository":{"type":"git","url":"git+https://github.com/nic0flamel/notion-automation.git"},"author":{"name":"Nic Flamel"},"bugs":{"url":"https://github.com/nic0xflamel/defillama-mcp-server/issues"},"license":"MIT","readme":"# DefiLlama MCP Server\n[![smithery badge](https://smithery.ai/badge/@nic0xflamel/defillama-mcp-server)](https://smithery.ai/server/@nic0xflamel/defillama-mcp-server)\n\nThis package provides a Model Context Protocol (MCP) server that acts as a proxy to the public DefiLlama API. It allows AI assistants (like Cursor) to interact with the DefiLlama API through the defined OpenAPI specification.\n\n## Features\n\n*   Dynamically generates MCP tools from the DefiLlama OpenAPI specification.\n*   Uses the official [DefiLlama API](https://defillama.com/docs/api).\n*   Translates MCP `callTool` requests into HTTP requests to the DefiLlama API.\n*   Handles responses and errors from the API.\n\n## Installation & Usage\n\n### Using npx (Recommended for Clients like Cursor)\n\nOnce published to npm, you can configure clients like Cursor to automatically download and run the server using `npx`. Add an entry to your client's MCP configuration (e.g., `mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"defillama\": { \n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\", // Ensures the latest version is used without prompting\n        \"@nic0xflamel/defillama-mcp-server\"\n        // Add any server-specific arguments here if needed in the future\n      ]\n    }\n    // ... other servers\n  }\n}\n```\n*Replace `\"defillama\"` with your desired server name key.* \n\n### Using Smithery (for Claude Desktop)\n\nTo install automatically via [Smithery](https://smithery.ai/server/@nic0xflamel/defillama-mcp-server):\n\n```bash\nnpx -y @smithery/cli install @nic0xflamel/defillama-mcp-server --client claude\n```\n\n### Manual / Development\n\n1.  Clone the repository.\n2.  Run `npm install`.\n3.  Run `npm run build`.\n4.  Start the server: `npm start` or use the linked command `defillama-mcp-server` (after running `npm link`).\n5.  Configure your MCP client to connect via `stdio` using the appropriate command (see `npx` example above, adapting for local paths or linked command if not using `npx`).\n\n## License\n\nMIT (A LICENSE file exists in the project root)\n","readmeFilename":"README.md","_rev":"1-6bd10b7cbac11525bd00364fa32a0922"}