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.
26 lines (25 loc) • 993 B
JavaScript
import { BaseModule } from '../base.module.js';
import { ContentAnalysisPhraseTrendsTool } from './tools/content-analysis-phrase-trends.js';
import { ContentAnalysisSearchTool } from './tools/content-analysis-search.tool.js';
import { ContentAnalysisSummaryTool } from './tools/content-analysis-summary.js';
export class ContentAnalysisApiModule extends BaseModule {
getTools() {
const tools = [
new ContentAnalysisSearchTool(this.dataForSEOClient),
new ContentAnalysisSummaryTool(this.dataForSEOClient),
new ContentAnalysisPhraseTrendsTool(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),
},
}), {});
}
getPrompts() {
return {};
}
}