Skip to main content
Glama

DataForSEO MCP Server

modules.config.ts1.19 kB
import { z } from 'zod'; // Define available module names export const AVAILABLE_MODULES = ['SERP', 'KEYWORDS_DATA', 'ONPAGE', 'DATAFORSEO_LABS', 'BACKLINKS', 'BUSINESS_DATA', 'DOMAIN_ANALYTICS', 'CONTENT_ANALYSIS'] as const; export type ModuleName = typeof AVAILABLE_MODULES[number]; // Schema for validating the ENABLED_MODULES environment variable export const EnabledModulesSchema = z.any() .transform((val:string) => { if (!val) return AVAILABLE_MODULES; // If not set, enable all modules return val.toString().split(',').map(name => name.trim().toUpperCase() as ModuleName); }) .refine((modules) => { return modules.every(module => AVAILABLE_MODULES.includes(module)); }, { message: `Invalid module name. Available modules are: ${AVAILABLE_MODULES.join(', ')}` }); export type EnabledModules = z.infer<typeof EnabledModulesSchema>; // Helper function to check if a module is enabled export function isModuleEnabled(moduleName: ModuleName, enabledModules: EnabledModules): boolean { return enabledModules.includes(moduleName); } // Default configuration (all modules enabled) export const defaultEnabledModules: EnabledModules = AVAILABLE_MODULES;

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/ravinwebsurgeon/seo-mcp'

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