Babbar MCP Server
Integrates with the Babbar.tech SEO API to enable AI assistants to perform advanced SEO analysis, competitor research, backlink auditing, and content gap identification.
README
Babbar MCP Server
A Model Context Protocol (MCP) server that integrates with the Babbar.tech SEO API, enabling AI assistants (Claude, ChatGPT with MCP, etc.) to perform advanced SEO analysis, competitor research, backlink auditing, and content gap identification.
Features
Comprehensive SEO Analysis
- Host/Domain/URL Overview: Popularity (Value), Trust, Semantic Value, Babbar Authority Score (BAS)
- Backlink Analysis: URL, host, and domain backlink profiles
- Anchor Text Analysis: Anchor distribution and risk detection
- Page Analysis: Identify top pages by Page Value, Trust, Semantic Value, Internal Page Value
Competitor Discovery & Analysis
- Similar Hosts: Detect semantically close competitors
- Batch Analysis: Compare multiple entities (hosts/domains/URLs)
- Historical Data: Track performance over time
Advanced SEO Metrics
- Induced Strength (fi): Unique Babbar metric measuring real link value (popularity + topicality)
- Internal PageRank: Internal linking analysis
- Duplication Analysis: RollingHash (Rabin–Karp) detection of duplicate content (87%+ threshold)
Keywords & SERP Analysis
- Keyword Positions: Track Google rankings (currently supports fr_FR, en_GB, en_US, es_ES)
- SERP Data: Full SERP with features and positions
- Semantic Explorer: Related searches, People Also Ask, suggestions
Performance & Reliability
- Smart Caching: 10-day cache for heavy endpoints
- Rate Limit Management: Auto-handling + retry after 60s
- Usage Logging: Full request/response logging
- Error Handling: Clear messages for invalid key, rate limits, or API issues
🚀 Installation & Setup
Prerequisites
- Node.js 18 or higher (check with
node -v) - npm (comes with Node.js, check with
npm -v) - Babbar API key (get it from your Babbar settings)
1. Clone the repository
git clone https://github.com/BabbarTech/BabbarMCP.git
cd BabbarMCP
2. Install dependencies
npm install
3. Set up environment variables
With Claude Desktop
Add this block to your claude_desktop_config.json:
{
"mcpServers": {
"babbar": {
"command": "node",
"args": ["/absolute/path/to/babbar-mcp/dist/index.js"],
"env": {
"BABBAR_API_KEY": "your_api_key_here",
"LOG_LEVEL": "info"
}
}
}
}
⚠️ Without a valid key, the server will not return real data (the API substitutes with dummy hosts/URLs).
4. Build the project
npm run build
This compiles TypeScript sources into the dist/ directory.
▶️ Usage
Local development
Run in watch mode:
npm run dev
Run built server:
node dist/index.js
🛠️ Available Tools (highlights)
Host Analysis
babbar_host_overview→ Metrics for a hostbabbar_host_backlinks_url|host|domain→ Backlink analysisbabbar_host_anchors→ Anchor distributionbabbar_host_pages_top_sv|pt|pv|iev→ Top pages by different metricsbabbar_host_similar→ Competitor discoverybabbar_host_keywords→ Keywords and rankingsbabbar_host_duplicate→ Duplicate content clusters
Domain Analysis
babbar_domain_overviewbabbar_domain_backlinks_*babbar_domain_anchors
URL Analysis
babbar_url_overviewbabbar_url_induced_strength (fi)babbar_url_semantic_similaritybabbar_url_links_internal|external
Keyword & SERP
babbar_keyword_serpbabbar_semantic_questionsbabbar_semantic_relatedbabbar_semantic_suggests
Advanced Analyses
babbar_content_gapbabbar_competitive_analysisbabbar_anchor_profile_riskbabbar_backlink_opportunities_spotfinder(uses Induced Strength only)
📖 Example Queries (works in French)
- Do a full metrics analysis of whisky.glass
- Give me backlink opportunities for www.recette-americaine.com
- Tell me about the semantic neighborhood of www.clubmed.fr
- Can you run a content gap analysis for whisky.glass?
- Show me the internal duplication issues within whisky.glass
- Provide me with a health analysis of whisky.glass
📊 Understanding Babbar Metrics
- Page/Host/Domain Value (0–100) → Popularity (Reasonable Surfer model)
- Page/Host/Domain Trust (0–100) → Trust score (not a direct Google authority factor)
- Semantic Value (0–100) → Popularity adjusted by topical coherence
- BAS (0–100) → Combined authority score with anti-spam (best correlated to Google rankings)
- Induced Strength (fi) → Only valid metric for backlink value, computed by Babbar API
💡 Tip: Always benchmark your metrics against your direct competitors, not the whole web.
Rate Limiting
- Each plan has a per-minute API quota.
- Remaining calls are tracked via headers (
x-ratelimit-remaining). - The MCP server auto-waits 60 seconds when the limit is exhausted.
- Errors are explicit if multiple processes compete for the limit.
Caching
- Cache enabled on POST requests (main data endpoints)
- Cache lifetime: 10 days
- Cache key = endpoint + parameters
- Reduces redundant queries and saves API credits
🐞 Error Handling
- 401 Unauthorized → Invalid or missing
BABBAR_API_KEY - 429 Too Many Requests → Rate limit exceeded, auto-retry after 60s
- 400/404/Other → Detailed error, check parameters
Logs include: endpoint, timestamp, status, and remaining quota.
📜 Logging
- Default: info level
- Levels:
debug,info,warn,error - Configure via
LOG_LEVELenvironment variable - Logs include endpoint calls, rate limit status, success/failure
🛠️ Development
Run in watch mode:
npm run dev
Rebuild manually:
npm run build
Lint the code:
npm run lint
🤝 Support
- API Support: support@babbar.tech
- Docs: Babbar API Reference
- Issues: GitHub Issues
📄 License
MIT License – see LICENSE.
🙌 Contributing
Contributions are welcome!
Please open an issue first to discuss changes. Pull requests should include tests when possible.
⚡ Acknowledgments
Built with:
- Model Context Protocol SDK
- Babbar.tech API
- Node.js, TypeScript, Axios, Node-Cache, Pino
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。