Competitive Intelligence MCP
Core Problem
Competitor pricing, ads, SEO, launches, and reviews move faster than manual monitoring.
What This Server Provides
This folder contains a production-minded MCP server scaffold with typed JSON tool responses, connector health metadata, OAuth-oriented configuration, rate-limit guards, stable error envelopes, and deterministic demo data until live vendor integrations are attached.
This server has received a production pass. It now includes local competitive monitoring models for price changes, new ads, SEO moves, product launches, review sentiment, and prioritized daily competitive briefs.
Connectors
- Meta Ad Library API via OAuth scope
ads_archive; env prefixMETA_LIBRARY - TikTok Ads Library via OAuth scope
ads.read; env prefixTIKTOK_LIBRARY - Ahrefs/SEMrush API via OAuth scope
keywords.read; env prefixSEO_DATA - Amazon Product API via OAuth scope
products.read; env prefixAMAZON_PRODUCT - Trustpilot API via OAuth scope
reviews.read; env prefixTRUSTPILOT - Playwright Scraper via OAuth scope
browser; env prefixPLAYWRIGHT
MCP Tools
get_competitor_price_changes- Price changes in the last week.get_competitor_new_ads- Recently launched competitor ads.get_competitor_seo_moves- New keywords and rank changes.get_competitor_new_products- Sitemap and catalog launch diff.get_competitor_review_sentiment- Review themes and sentiment trend.get_daily_competitive_brief- Prioritized daily competitive moves.
Current Local Capabilities
- Detects competitor price changes and classifies response severity.
- Summarizes newly launched competitor ads and repeated angles.
- Tracks competitor SEO keyword gains, losses, and new keyword entries.
- Detects new product launches from catalog/sitemap diffs.
- Extracts positive and negative review themes for positioning opportunities.
- Produces a daily brief that prioritizes price, ad, SEO, and product signals by impact.
- Returns stable errors for empty inputs, invalid lookback windows, and unknown brands.
Test
python -m pytest .\tests -q -p no:cacheprovider
Partial Platform Support
Customers only need to connect the competitive-intelligence sources they actually use. Missing competitor site, Meta Ad Library, TikTok Library, SEO data, Amazon product, Trustpilot, review source, or Playwright credentials do not prevent the server from starting or running local intelligence tools.
Use get_live_connector_status to see configured connectors. Use test_competitor_site_connection, test_meta_ad_library_connection, test_seo_data_connection, and test_review_source_connection for read-only live smoke checks when those sources are connected.
Running Locally
powershell
python -m venv .venv
.\.venv\Scripts\pip install -e .
.\.venv\Scripts\python -m competitive_intelligence_mcp.server
Claude Desktop Config
json
{
"mcpServers": {
"competitive-intelligence": {
"command": "python",
"args": ["-m", "competitive_intelligence_mcp.server"],
"cwd": "D:\CUSTOMS\EARNALL\MCP Servers\09-competitive-intelligence"
}
}
}
Production Checklist
- Create OAuth 2.1 apps for each connector and set *_CLIENT_ID plus *_CLIENT_SECRET.
- Store refresh tokens in a secrets manager, never in repo files.
- Replace deterministic demo rows in server.py with API adapter calls.
- Persist raw snapshots and normalized warehouse tables for trend analysis.
- Add integration tests with recorded fixtures for every connector.
- Validate every tool in MCP Inspector before publishing.
- Deploy with a /health route through FastMCP streamable HTTP on Railway or Render.
Metadata
Release files for competitive-intelligence-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| competitive_intelligence_mcp-0.1.1.tar.gz | 19.3 kB | Without provenance | Details for competitive_intelligence_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| competitive_intelligence_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for competitive_intelligence_mcp-0.1.1-py3-none-any.whl |
Total release size: 39.7 kB
Release files / competitive_intelligence_mcp-0.1.1.tar.gz
| Download URL | competitive_intelligence_mcp-0.1.1.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de188796aa0d27362bb1a46d1cc62fea6e5ea030b0fa1aa2d2ad8bde6df03908
|
|
BLAKE2b-256 checksum How to use checksums |
7865038a03888d3ef48bec8a8bbd39ba3e49cb38b87d0ff74427a27748b632da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / competitive_intelligence_mcp-0.1.1-py3-none-any.whl
| Download URL | competitive_intelligence_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97108b55019d280f2b81631858091537e64db79f8810a537f594ac92bce9d3ca
|
|
BLAKE2b-256 checksum How to use checksums |
56e762fed5607a2e664ecad3d3107b9413eb8e801fc23a2481a7e8607b52bbc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for competitive-intelligence-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.