Skip to main content
Glama

Etherscan MCP

server.ts878 B
import { FastMCP } from "fastmcp"; import { registerResources } from "../core/resources.js"; import { registerTools } from "../core/tools.js"; import { registerPrompts } from "../core/prompts.js"; // Create and start the MCP server async function startServer() { try { // Create a new FastMCP server instance const server = new FastMCP({ name: "MCP Server", version: "1.0.0" }); // Register all resources, tools, and prompts registerResources(server); registerTools(server); registerPrompts(server); // Log server information console.error(`MCP Server initialized`); console.error("Server is ready to handle requests"); return server; } catch (error) { console.error("Failed to initialize server:", error); process.exit(1); } } // Export the server creation function export default startServer;

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/xiaok/etherscan-mcp'

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