Keyword Research Tool MCP Server
Provides comprehensive SEO analysis by crawling websites and generating AI-powered keyword insights, search volume data, and competitor strategies. It delivers detailed reports on keyword clusters and commercial intent to help optimize digital marketing workflows.
README
Keyword Research Tool MCP Server
An MCP (Model Context Protocol) server that provides comprehensive SEO keyword research and analysis capabilities. This server adapts the functionality from the original boringmarketer/keyword-research-tool into a single, powerful MCP tool.
Features
🔍 Comprehensive Analysis
- Website content crawling and analysis using Firecrawl
- AI-powered seed keyword generation with Perplexity
- Search volume and competition data via DataForSEO
- Smart keyword clustering and competitor analysis
- Timestamped report generation
📊 Detailed Reports
- Keyword clusters with commercial intent scoring
- Quick wins (low competition opportunities)
- High-value targets (commercial keywords)
- Competitor domain analysis with AI research
- Actionable SEO strategy recommendations
- Dual format: JSON (technical) + Text (human-readable)
- Professional text reports matching original HTML tool format
🎯 Business-Focused
- Auto-detects and optimizes for business type
- Commercial intent scoring for ROI focus
- Industry-specific keyword suggestions
- Professional report format
Prerequisites
You'll need API keys from these services:
Required APIs
-
Firecrawl (Website Scraping)
- Sign up at: https://firecrawl.dev/
- Format:
fc-xxxxxxxxxx - Cost: ~$0.01 per website scrape
-
Perplexity (AI Keyword Generation)
- Sign up at: https://www.perplexity.ai/
- Format:
pplx-xxxxxxxxxx - Cost: ~$0.02 per keyword generation
-
DataForSEO (Keyword & SERP Data)
- Sign up at: https://dataforseo.com/
- Uses your login credentials (username/password)
- Cost: ~$0.50-1.00 per analysis
Total estimated cost per analysis: ~$0.53-1.03
Installation
- Clone and install dependencies:
git clone <this-repo>
cd keyword-research-tool-mcp
npm install
npm run build
- Add to your MCP client configuration (e.g., in Claude Desktop's config):
{
"mcpServers": {
"seo-keyword-research": {
"command": "node",
"args": ["path/to/keyword-research-tool-mcp/dist/index.js"],
"env": {
"FIRECRAWL_API_KEY": "fc-xxxxxxxxxxxxxxxxxxxxxxxxxx",
"PERPLEXITY_API_KEY": "pplx-xxxxxxxxxxxxxxxxxxxxxxxxxx",
"DATAFORSEO_USERNAME": "your-username",
"DATAFORSEO_PASSWORD": "your-password"
}
}
}
}
If you are running a tool like Cursor or Windsurf, you may need to remind it to search for API keys in the above JSON file.
3. Build the Server
npm run build
Usage
The server provides one comprehensive tool:
analyze_website
Performs complete SEO keyword research and analysis for any website.
Parameters:
website_url(string): Website URL to analyze (e.g., "https://example.com")business_type(enum): Business type for targeted analysis- Options: "E-commerce", "SaaS", "Service Business", "Blog/Content", "Education", "Other"
firecrawl_api_key(string): Firecrawl API key (format: fc-xxxxxxxxxx)perplexity_api_key(string): Perplexity API key (format: pplx-xxxxxxxxxx)dataforseo_username(string): DataForSEO username (your email)dataforseo_password(string): DataForSEO password
Example Usage:
analyze_website({
"website_url": "https://example.com",
"business_type": "SaaS",
"firecrawl_api_key": "fc-your-key-here",
"perplexity_api_key": "pplx-your-key-here",
"dataforseo_username": "your@email.com",
"dataforseo_password": "your_password"
})
Output
The analysis generates:
Console Output
- Analysis Summary: Total keywords, search volume, traffic potential
- Quick Wins: Low competition opportunities for immediate targeting
- High-Value Targets: Keywords with highest commercial potential
- Top Keyword Clusters: Organized keyword groups with metrics
- Main Competitors: Competing domains identified
- Report Location: Path to detailed JSON report
Saved Reports
Timestamped reports are automatically saved to reports/ directory in two formats:
JSON Report (<company domain>_YYYY-MM-DD_HH-MM-SS.json):
- Complete analysis data for technical use
- All keyword metrics and search volumes
- Competitor domains and SERP analysis
- Commercial intent scores
- Clustering analysis
- Raw API response data
Text Report (<company domain>_YYYY-MM-DD_HH-MM-SS_formatted.txt):
- Comprehensive formatted report matching the original HTML tool
- Executive summary with key metrics
- Quick wins section (low competition opportunities)
- High-value targets (commercial keywords)
- Detailed keyword clusters with complete breakdowns
- Competitor analysis with AI and SERP sources
- Strategic action plan (immediate, medium-term, long-term)
- Raw analysis data section
- Professional formatting with ASCII art borders
Analysis Process
The tool follows the same comprehensive process as the original app.js:
- Website Scraping: Extract content using Firecrawl API
- Content Cleaning: Filter technical terms, focus on business-relevant content
- Keyword Generation: AI-powered seed keyword creation with Perplexity
- Keyword Enhancement: Get search volumes, competition data via DataForSEO
- SERP Analysis: Analyze top-ranking pages and competitor domains
- Clustering: Group related keywords into themed clusters
- Scoring: Calculate commercial intent and difficulty scores
- Report Generation: Create comprehensive analysis report
Code Structure
The MCP server is built by adapting the original app.js functions:
src/index.ts
├── KeywordResearchTool class
│ ├── scrapeWebsite() # Website content extraction
│ ├── cleanWebsiteContent() # Content filtering and cleaning
│ ├── generateKeywords() # AI keyword generation
│ ├── filterTechnicalKeywords() # Remove irrelevant terms
│ └── performAnalysis() # Main orchestration function
├── MCP Server setup
│ ├── Tool definition (analyze_website)
│ ├── Request handlers
│ └── Response formatting
└── Report generation and file saving
Key Adaptations from Original
- Single Tool: Condensed the multi-step web UI into one comprehensive MCP tool
- Simplified Flow: Removed UI progress indicators, kept core analysis logic
- Enhanced Output: Structured markdown output plus detailed JSON reports
- Type Safety: Full TypeScript implementation with proper interfaces
- Error Handling: Comprehensive error messages and validation
- Report Persistence: Automatic timestamped report saving
Development
Build the project:
npm run build
Run in development mode:
npm run dev
Start the server:
npm start
Troubleshooting
Common Issues
"Analysis failed" errors:
- Verify all API keys are correct and active
- Check API credit balances
- Ensure website URL is accessible
- Test individual API endpoints
"Failed to scrape website":
- Check if website blocks crawlers/bots
- Try with different website URL
- Verify Firecrawl API key format and permissions
DataForSEO errors:
- Confirm username/password are correct
- Check account has sufficient credits
- Some keywords may have limited data available
API Documentation
- Firecrawl: https://docs.firecrawl.dev/
- Perplexity: https://docs.perplexity.ai/
- DataForSEO: https://docs.dataforseo.com/
License
MIT License - Feel free to use and modify for your SEO research needs.
Built for marketers and SEO professionals who want comprehensive keyword research integrated into their AI workflows.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。