{"id":28192894,"url":"https://github.com/dcspark/mcp-server-defillama","last_synced_at":"2025-05-16T12:16:02.078Z","repository":{"id":280241775,"uuid":"941389566","full_name":"dcSpark/mcp-server-defillama","owner":"dcSpark","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-17T22:20:54.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T23:27:57.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcSpark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-02T06:59:36.000Z","updated_at":"2025-03-17T22:20:58.000Z","dependencies_parsed_at":"2025-03-02T08:20:40.903Z","dependency_job_id":"36e30076-c5fa-486e-8584-e47b7bcccee0","html_url":"https://github.com/dcSpark/mcp-server-defillama","commit_stats":null,"previous_names":["dcspark/mcp-server-defillama"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fmcp-server-defillama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fmcp-server-defillama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fmcp-server-defillama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fmcp-server-defillama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcSpark","download_url":"https://codeload.github.com/dcSpark/mcp-server-defillama/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527100,"owners_count":22085920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-16T12:15:41.731Z","updated_at":"2025-05-16T12:16:02.066Z","avatar_url":"https://github.com/dcSpark.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP Server for DefiLlama\n\nThis repository contains a Model Context Protocol (MCP) server that provides Claude with access to DeFi data via the DefiLlama API. The server enables Claude to perform operations like retrieving protocol TVL data, chain TVL data, token prices, and stablecoin information.\n\n## Overview\n\nThe MCP server exposes the following tools to Claude:\n\n### Protocol Data\n\n- `defillama_get_protocols`: List all protocols tracked by DefiLlama\n- `defillama_get_protocol_tvl`: Get TVL data for a specific protocol\n\n### Chain Data\n\n- `defillama_get_chain_tvl`: Get TVL data for a specific chain\n\n### Token Data\n\n- `defillama_get_token_prices`: Get current prices of tokens\n- `defillama_get_historical_prices`: Get historical prices of tokens\n\n### Stablecoin Data\n\n- `defillama_get_stablecoins`: List all stablecoins tracked by DefiLlama\n- `defillama_get_stablecoin_data`: Get data for a specific stablecoin\n\nPrerequisites\n- Node.js (v16 or higher)\n\n## Running the server\n\n### Option 1: Using npx (Recommended)\n```npx @mcp-dockmaster/mcp-server-defillama```\nYou can run the MCP server directly without installation using npx:\nThis will download and execute the server directly from npm.\n\n### Option 2: Manual Installation\nClone this repository:\n```git clone https://github.com/mcp-dockmaster/mcp-server-defillama.git```\nInstall dependencies:\n```npm install```\nBuild the project:\n```npm run build```\n\n## Claude Usage\nTo configure Claude Desktop to use this MCP server:\n\nOpen Claude Desktop, and navigate to Settings\u003eDeveloper Settings\u003eMCP Servers. There you'll encounter the button to open the configuration JSON file.\n\nAdd the MCP server configuration:\n```json\n{\n  \"mcpServers\": {\n    \"mcp-server-defillama\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"@mcp-dockmaster/mcp-server-defillama\"\n      ]\n    }\n  }\n}\n```\nAlternatively, if you installed the package locally:\n```json\n{\n  \"mcpServers\": {\n    \"mcp-server-defillama\": {\n      \"command\": \"node\",\n      \"args\": [\n        \"/path/to/your/mcp-server-defillama/build/index.js\"\n      ]\n    }\n  }\n}\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcspark%2Fmcp-server-defillama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcspark%2Fmcp-server-defillama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcspark%2Fmcp-server-defillama/lists"}