Skip to main content
Glama

Google Ads MCP Server

by martechery
server.ts1.06 kB
import type { Server as BaseServer } from "@modelcontextprotocol/sdk/server"; import { registerTools } from "./server-tools.js"; // Basic MCP server using the official SDK (no fastmcp) export async function startServer() { let McpServer: any; try { ({ McpServer } = await import("@modelcontextprotocol/sdk/server/mcp.js" as any)); } catch { ({ McpServer } = await import("@modelcontextprotocol/sdk/server/mcp" as any)); } const server: BaseServer = new McpServer({ name: "mcp-google-ads-gcloud-auth", version: "0.1.0" }); registerTools(server as any); let StdioServerTransport: any; try { ({ StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js" as any)); } catch { try { ({ StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio" as any)); } catch { ({ StdioServerTransport } = await import("@modelcontextprotocol/sdk/dist/esm/server/stdio.js" as any)); } } const transport = new StdioServerTransport(); await (server as any).connect(transport); }

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/martechery/mcp-google-ads-ts'

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