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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.