edkdev/defi-trading-mcp
DeFi Trading Agent MCP Server - Transform your AI into an autonomous crypto trading agent
c467b35eb637defi-trading-mcp2.1.7 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
Prompt Integrity is not analysed and has no number.
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- Prompt Integrity: no tool description could be read from the code
- In 27 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 32 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- CRITICAL8 production dependencies have known vulnerabilities (worst: critical).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
@modelcontextprotocol/sdk1.32.0 or later,ajv6.14.0 or later,body-parser2.4.0 or later,path-to-regexp8.4.0 or later and 4 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 32 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
(name computed at run time)No tool was seen to: start other programs on the machine; read or write files; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
32 request addresses could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- web or API responses1 tool · (name computed at run time)
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (32: 32 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
(name computed at run time)tool Get indicative price for a token swap using Aggregator ProtocolNetworkoutside text
Get indicative price for a token swap using Aggregator Protocol
(name computed at run time)tool Get executable quote with transaction data for a token swapNetworkoutside text
Get executable quote with transaction data for a token swap
(name computed at run time)tool Execute a swap transaction (requires quote data)Networkoutside text
Execute a swap transaction (requires quote data)
(name computed at run time)tool Get list of blockchain networks supported by Aggregator ProtocolNetworkoutside text
Get list of blockchain networks supported by Aggregator Protocol
(name computed at run time)tool Get list of liquidity sources available on a specific chainNetworkoutside text
Get list of liquidity sources available on a specific chain
(name computed at run time)tool Get token prices by contract addresses using CoinGecko APINetworkoutside text
Get token prices by contract addresses using CoinGecko API
(name computed at run time)tool Get list of supported networks on CoinGecko/GeckoTerminalNetworkoutside text
Get list of supported networks on CoinGecko/GeckoTerminal
(name computed at run time)tool Get list of supported DEXes on a specific networkNetworkoutside text
Get list of supported DEXes on a specific network
(name computed at run time)tool Get trending pools across all networks on GeckoTerminalNetworkoutside text
Get trending pools across all networks on GeckoTerminal
(name computed at run time)tool Get trending pools on a specific networkNetworkoutside text
Get trending pools on a specific network
(name computed at run time)tool Get data for multiple pools by their contract addressesNetworkoutside text
Get data for multiple pools by their contract addresses
(name computed at run time)tool Get top pools on a specific DEXNetworkoutside text
Get top pools on a specific DEX
(name computed at run time)tool Get latest new pools across all networksNetworkoutside text
Get latest new pools across all networks
(name computed at run time)tool Search for pools by query (pool address, token address, or token symbol)Networkoutside text
Search for pools by query (pool address, token address, or token symbol)
(name computed at run time)tool Get top pools for a specific token by contract addressNetworkoutside text
Get top pools for a specific token by contract address
(name computed at run time)tool Get specific token data by contract addressNetworkoutside text
Get specific token data by contract address
(name computed at run time)tool Get data for multiple tokens by their contract addressesNetworkoutside text
Get data for multiple tokens by their contract addresses
(name computed at run time)tool Get detailed token information including socials, websites, and descriptionNetworkoutside text
Get detailed token information including socials, websites, and description
(name computed at run time)tool Get recently updated tokens with their informationNetworkoutside text
Get recently updated tokens with their information
(name computed at run time)tool Get OHLCV (Open, High, Low, Close, Volume) data for a poolNetworkoutside text
Get OHLCV (Open, High, Low, Close, Volume) data for a pool
(name computed at run time)tool Get recent trades for a specific poolNetworkoutside text
Get recent trades for a specific pool
(name computed at run time)tool Get indicative price for a gasless token swap (no gas fees required)Networkoutside text
Get indicative price for a gasless token swap (no gas fees required)
(name computed at run time)tool Get executable quote for a gasless token swap with EIP-712 signature dataNetworkoutside text
Get executable quote for a gasless token swap with EIP-712 signature data
(name computed at run time)tool Submit a gasless swap by signing approval and trade messages (no gas fees required)Networkoutside text
Submit a gasless swap by signing approval and trade messages (no gas fees required)
(name computed at run time)tool Get the status of a submitted gasless swapNetworkoutside text
Get the status of a submitted gasless swap
(name computed at run time)tool Get list of blockchain networks that support gasless swapsNetworkoutside text
Get list of blockchain networks that support gasless swaps
(name computed at run time)tool Get list of tokens that support gasless approvals (EIP-2612 permit)Networkoutside text
Get list of tokens that support gasless approvals (EIP-2612 permit)
(name computed at run time)tool Get tokens with balances, prices, and metadata for wallet addresses (uses USER_ADDRESS from env if addresses not provided)Networkoutside text
Get tokens with balances, prices, and metadata for wallet addresses (uses USER_ADDRESS from env if addresses not provided)
(name computed at run time)tool Get token balances for wallet addresses (faster, no prices/metadata, uses USER_ADDRESS from env if addresses not provided)Networkoutside text
Get token balances for wallet addresses (faster, no prices/metadata, uses USER_ADDRESS from env if addresses not provided)
(name computed at run time)tool Get transaction history for a wallet address (BETA: 1 address, ETH/BASE only, uses USER_ADDRESS from env if addresses not provided)Networkoutside text
Get transaction history for a wallet address (BETA: 1 address, ETH/BASE only, uses USER_ADDRESS from env if addresses not provided)
(name computed at run time)tool Convert wei amounts to human-readable format using ethers.jsNetworkoutside text
Convert wei amounts to human-readable format using ethers.js
(name computed at run time)tool Convert formatted amounts to wei using ethers.jsNetworkoutside text
Convert formatted amounts to wei using ethers.js
Text the model reads (32)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
(name computed at run time) tool
Get indicative price for a token swap using Aggregator Protocol
(name computed at run time) tool
Get executable quote with transaction data for a token swap
(name computed at run time) tool
Execute a swap transaction (requires quote data)
(name computed at run time) tool
Get list of blockchain networks supported by Aggregator Protocol
(name computed at run time) tool
Get list of liquidity sources available on a specific chain
(name computed at run time) tool
Get token prices by contract addresses using CoinGecko API
(name computed at run time) tool
Get list of supported networks on CoinGecko/GeckoTerminal
(name computed at run time) tool
Get list of supported DEXes on a specific network
(name computed at run time) tool
Get trending pools across all networks on GeckoTerminal
(name computed at run time) tool
Get trending pools on a specific network
(name computed at run time) tool
Get data for multiple pools by their contract addresses
(name computed at run time) tool
Get top pools on a specific DEX
(name computed at run time) tool
Get latest new pools across all networks
(name computed at run time) tool
Search for pools by query (pool address, token address, or token symbol)
(name computed at run time) tool
Get top pools for a specific token by contract address
(name computed at run time) tool
Get specific token data by contract address
(name computed at run time) tool
Get data for multiple tokens by their contract addresses
(name computed at run time) tool
Get detailed token information including socials, websites, and description
(name computed at run time) tool
Get recently updated tokens with their information
(name computed at run time) tool
Get OHLCV (Open, High, Low, Close, Volume) data for a pool
(name computed at run time) tool
Get recent trades for a specific pool
(name computed at run time) tool
Get indicative price for a gasless token swap (no gas fees required)
(name computed at run time) tool
Get executable quote for a gasless token swap with EIP-712 signature data
(name computed at run time) tool
Submit a gasless swap by signing approval and trade messages (no gas fees required)
(name computed at run time) tool
Get the status of a submitted gasless swap
(name computed at run time) tool
Get list of blockchain networks that support gasless swaps
(name computed at run time) tool
Get list of tokens that support gasless approvals (EIP-2612 permit)
(name computed at run time) tool
Get tokens with balances, prices, and metadata for wallet addresses (uses USER_ADDRESS from env if addresses not provided)
(name computed at run time) tool
Get token balances for wallet addresses (faster, no prices/metadata, uses USER_ADDRESS from env if addresses not provided)
(name computed at run time) tool
Get transaction history for a wallet address (BETA: 1 address, ETH/BASE only, uses USER_ADDRESS from env if addresses not provided)
(name computed at run time) tool
Convert wei amounts to human-readable format using ethers.js
(name computed at run time) tool
Convert formatted amounts to wei using ethers.js
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 32 capabilities; 32 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 32 capabilities; 32 more call code the scanner could not follow, where it may happen
- Tools that call the network32 of 32 capabilities call the network
Where the code is: 32 handlers in 1 file at commit c467b35eb637
src/index.js(name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time) +20
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityNot checked: no tool description could be read from the code
- Dependency manifests1 manifest: package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies CRITICAL8 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/sdk ^1.0.3
- 2 checks: undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Credential harvestingNot checked: no tool description could be read from the code
- Tools that read credentialsNot seen in the traced code of 32 capabilities; 32 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (8 in production)
proxy-addrnpm 2.0.7 CRITICAL 1 advisory 2.0.8
- CRITICALGHSA-jqcg-44mw-7w3h CVE-2026-90711proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet
@modelcontextprotocol/sdknpm 1.17.0 HIGH 8 advisories 1.24.01.25.21.26.0+3 more
- HIGHGHSA-345p-7cg4-v4c7 CVE-2026-25536@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
- HIGHGHSA-6qxp-vccf-f47h CVE-2026-104850MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
- HIGHGHSA-f897-62hf-6gxqMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length
- HIGHGHSA-8r9q-7v3j-jr4g CVE-2026-0621Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
- HIGHGHSA-46jr-4wx8-v453 CVE-2026-111768MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation
- HIGHGHSA-w48q-cv73-mx4w CVE-2025-66414Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
- MEDIUMGHSA-6prh-2h8m-c8cw CVE-2026-111769MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
- MEDIUMGHSA-rvq5-wwqv-78pq CVE-2026-111771MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service
body-parsernpm 2.2.0 HIGH 3 advisories 1.20.61.20.92.2.1+2 more
- HIGHGHSA-27r3-jxmh-p828 CVE-2026-111181body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
- MEDIUMGHSA-wqch-xfxh-vrr4 CVE-2025-13466body-parser is vulnerable to denial of service when url encoding is used
- LOWGHSA-v422-hmwv-36x6 CVE-2026-12590body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
path-to-regexpnpm 8.2.0 HIGH 2 advisories 8.4.0
- HIGHGHSA-j3q9-mxjg-w52f CVE-2026-4926path-to-regexp vulnerable to Denial of Service via sequential optional groups
- MEDIUMGHSA-27v5-c462-wpq7 CVE-2026-4923path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
wsnpm 8.17.1 HIGH 2 advisories 5.2.56.2.47.5.11+2 more
- HIGHGHSA-96hv-2xvq-fx4p CVE-2026-48779ws: Memory exhaustion DoS from tiny fragments and data chunks
- MEDIUMGHSA-58qx-3vcg-4xpx CVE-2026-45736ws: Uninitialized memory disclosure
zodnpm 3.25.76 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
qsnpm 6.14.0 MEDIUM 5 advisories 6.14.16.14.26.15.2+2 more
- MEDIUMGHSA-4mjr-xmp4-gh2g CVE-2026-82417qs: Denial of Service via Attacker Controlled isBuffer
- MEDIUMGHSA-q8mj-m7cp-5q26 CVE-2026-8723qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set
- MEDIUMGHSA-6rw7-vpxm-498p CVE-2025-15284qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion
- MEDIUMGHSA-6pq8-jhm2-2vcw CVE-2026-110816qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
- LOWGHSA-w7fw-mjwx-w883 CVE-2026-2391qs's arrayLimit bypass in comma parsing allows denial of service
ajvnpm 6.12.6 MEDIUM 1 advisory 6.14.08.18.0
- MEDIUMGHSA-2g4f-4pwh-qvx6 CVE-2025-69873ajv has ReDoS when using `$data` option
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk ^1.0.3 |
| Servers in the code | 1 (Defi-trading-mcp) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-06-10 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | not stated |
| Created | 2025-08-01 |
| Topics | ai-agent base blockchain crypto crypto-trading-agent defi ethereum gasless mcp memecoin |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.