Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 }; } } );
  • 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(); }
  • Invocation of registerEVMTools(server) in the main server startup function, which registers all EVM tools including get_supported_networks.
    registerEVMTools(server);
  • Input schema for get_supported_networks tool: empty object indicating no parameters required.
    {},

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chulanpro5/evm-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server