get_supported_networks
Retrieve a list of supported EVM-compatible networks to enable seamless blockchain interactions across multiple chains using the EVM MCP Server.
Instructions
Get a list of supported EVM networks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/core/tools.ts:148-182 (handler)The MCP tool registration and handler implementation for 'get_supported_networks'. This defines the tool name, description, empty input schema ({}), and the async handler that calls getSupportedNetworks() to return the list of supported networks as JSON text content.server.tool( 'get_supported_networks', 'Get a list of supported EVM networks', {}, async () => { try { const networks = getSupportedNetworks(); return { content: [ { type: 'text', text: JSON.stringify( { supportedNetworks: networks }, null, 2 ) } ] }; } catch (error) { return { content: [ { type: 'text', text: `Error fetching supported networks: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } } );
- src/core/chains.ts:341-345 (helper)Helper function getSupportedNetworks() that returns sorted array of supported network names (excluding short aliases like 'bsc') from the networkNameMap.export function getSupportedNetworks(): string[] { return Object.keys(networkNameMap) .filter((name) => name.length > 2) // Filter out short aliases .sort(); }
- src/server/server.ts:18-18 (registration)Invocation of registerEVMTools(server) in the main server startup function, which registers all EVM tools including get_supported_networks.registerEVMTools(server);
- src/core/tools.ts:151-151 (schema)Input schema for get_supported_networks tool: empty object indicating no parameters required.{},