dataforseo-mcp-server
Version:
A Model Context Protocol (MCP) server for the DataForSEO API, enabling modular and extensible integration of DataForSEO endpoints with support for both HTTP and SSE transports.
21 lines (20 loc) • 792 B
JavaScript
import { BaseModule } from '../base.module.js';
import { SerpOrganicLiveAdvancedTool } from './tools/serp-organic-live-advanced.tool.js';
import { SerpOrganicLocationsListTool } from './tools/serp-organic-locations-list.tool.js';
export class SerpApiModule extends BaseModule {
getTools() {
const tools = [
new SerpOrganicLiveAdvancedTool(this.dataForSEOClient),
new SerpOrganicLocationsListTool(this.dataForSEOClient),
// Add more tools here
];
return tools.reduce((acc, tool) => ({
...acc,
[tool.getName()]: {
description: tool.getDescription(),
params: tool.getParams(),
handler: (params) => tool.handle(params),
},
}), {});
}
}