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.
19 lines (18 loc) • 668 B
JavaScript
import { BaseModule } from '../base.module.js';
import { BusinessDataBusinessListingsSearchTool } from './tools/listings/business-listings-search.tool.js';
export class BusinessDataApiModule extends BaseModule {
getTools() {
const tools = [
new BusinessDataBusinessListingsSearchTool(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),
},
}), {});
}
}