CaSee Intelligence MCP Server
OfficialProvides CaSee's competitive intelligence retrieval capabilities to CrewAI agents, enabling real-time trusted-source search, trend analysis, and source aggregation within AI workflows.
Integrates CaSee's competitive intelligence retrieval tools into LangChain agents, allowing them to search trusted sources, analyze trends, and aggregate intelligence by source.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
CaSee Intelligence MCP Server
Enterprise Competitive Intelligence Retrieval for AI Agents — Built on MCP (Model Context Protocol)
About CaSee — AI-Driven Competitive Intelligence Platform
CaSee is an AI-driven competitive intelligence & market insight platform — "Win by strategy, sense opportunities first, decide a thousand miles ahead".
CaSee delivers verifiable competitive intelligence that helps startups find market opportunities and established enterprises expand their competitive advantages. It solves the core pain points of enterprise competitive intelligence:
Fragmented intelligence collection
Inefficient manual analysis
Outdated market insights
Intelligence that never reaches business decisions
Built for market, sales, product, and strategy teams of mid-to-large enterprises, CaSee connects market data with business decision-making — upgrading from passive competitive monitoring to proactive market trend prediction.
Platform Capabilities
Capability | Description |
Real-time Competitive Sensing | Monitor competitors, markets, and customers for specific business lines; panoramic external environment scanning; real-time threat alerts with tiered control |
Quantified Competitive Threat Analysis | SWOT, PESTEL, BCG Matrix, VRIO Framework and other systematic analysis tools to evaluate industry profitability, competitive landscape, and policy risks |
Proactive Strategy Evaluation | Proprietary Neural-Causal AI long-chain causal reasoning engine predicts the effects of competitive strategies — open-world reasoning for long-chain causal links, closed-world reasoning for quantified execution outcomes |
Trusted Intelligence Collection | Real-time competitor tracking, market trend prediction, fusion of fragmented intelligence, goal-oriented targeted intelligence sensing |
Expert Competitive Analysis | Customized CI analysis capability building, self-service professional reports, and an industry expert knowledge base |
Trusted Intelligence Assurance: Quantified T-Score credibility scoring, multi-source cross-validation, causal-reasoning bias detection, and compliance guardrails prevent AI agent hallucination, stale data, and false citations.
Try CaSee: https://casee.me — get your API key and explore the platform.
Related MCP server: ES Hub Signals MCP
🎯 What is casee-mcp-server?
casee-mcp-server is the MCP (Model Context Protocol) gateway that exposes CaSee's competitive intelligence retrieval capabilities as standardized MCP Tools for AI Agents (WorkBuddy, Trae Work, Claude Desktop, LangChain, CrewAI, and any MCP-compatible framework).
It bridges two worlds:
CaSee's intelligence backend — curated intelligence with T-Score credibility, real-time competitive dynamics, and quantified analysis
Your AI Agent — any LLM application that speaks MCP (stdio or Streamable-HTTP)
With casee-mcp-server, your AI agents gain real-time, credibility-scored intelligence retrieval from the CaSee platform — turning them from generic chat tools into verifiable competitive intelligence analysts that can run complex logic retrieval, analyze trends, and aggregate by category / region / language — all through a compact set of MCP tools.
🤖 Why casee-mcp-server?
LLM AI Agents (Claude, GPT, etc.) can generate competitive intelligence reports, but their analysis is limited by training data cutoff dates and unverifiable sources. When you ask an LLM directly about "global EV battery market trends," you get:
Outdated information (trained months ago)
Unverifiable sources (hallucinated or unknown provenance)
Shallow analysis (lacks industry-specific frameworks)
casee-mcp-server bridges this gap by giving AI Agents access to real-time, credibility-scored intelligence retrieval:
Dimension | LLM Alone | With casee-mcp-server |
Source Trust | Unknown / hallucinated | Curated intelligence with tscore (0-1) credibility scoring |
Data Freshness | Training cutoff date | Real-time, configurable time window (1-365 days) |
Query Precision | Natural language only | Search-engine syntax: |
Analysis Depth | Surface-level summary | Trend analysis + category / region / language aggregation |
Traceability | None | Every result links to specific source, date, and tscore |
Core Value: Transforms AI Agents from "chat tools" into trusted competitive intelligence analysis systems — with timely, traceable, and quantifiable intelligence.
🚀 Quick Start
There are two ways to use casee-mcp-server:
Option | Description | Best For |
A. Self-hosted MCP | Build & run | Full control, air-gapped networks, custom tuning, stdio mode |
B. Hosted MCP (zero-setup) | Connect directly to the deployed server at | Fastest time-to-value, no local install |
Prerequisites
Python 3.10+ (only required for Option A)
A CaSee API Key (get one at https://casee.me) — required for both options; every intelligence request is authenticated with it
Option A — Build & Run Your Own MCP Server
Step 1: Get a CaSee API Key
Register at https://casee.me and create a read-only API key for your agent (we recommend scoping it to intelligence:read). Keep it secret — it authenticates every request.
Step 2: Install
# From PyPI
pip install casee-mcp-server
# Or from source
git clone https://github.com/xcasee/casee-mcp-server.git
cd casee-mcp-server && pip install -e .Step 3: Configure environment variables
export CASEE_IS_API_KEY=casee_xxx # your CaSee API key (casee.me)
export CASEE_API_BASE_URL=https://casee.me # CaSee Intelligence Server URL
export CASEE_OPENAPI_BASE_URL=https://origin.casee.me/api/v1/openapi # direct origin, bypass CDN
export CASEE_PORTAL_BASE_URL=https://www.casee.meStep 4: Start the server
stdio mode — for Claude Desktop and local tools (a local process, one connection):
casee-mcpStreamable-HTTP mode — for WorkBuddy / Trae Work / remote agents (exposes a single HTTP endpoint):
casee-mcp --http --port 8100The server listens on http://127.0.0.1:8100/mcp by default. To expose it on the network, set MCP_HOST=0.0.0.0.
Step 5: Verify the server is alive
curl -X POST http://localhost:8100/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'You should receive an initialize result with serverInfo.name == "casee". Then list the tools:
# after initialize, get the session id from the response header "Mcp-Session-Id"
curl -X POST http://localhost:8100/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Mcp-Session-Id: <your-session-id>" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'You should see all 60 tools: the 5 query tools (search_intelligence, analyze_trend, aggregate_intelligence, semantic_search_tool, search_with_cvc) plus batch_search, CVC administration tools, full-history purge, the v1.4 report tools (templates / plan / generate / poll / share / rebuild / health), the v1.6 CVC creation tools (company search / create / job polling / build status) and the v1.7 OpenAPI coverage tools (credits / ledger / quota, report download, charts, template CRUD, CVC inspection and business insights).
Step 6: Run with Docker (recommended for production)
# 1. configure your API key
echo "CASEE_IS_API_KEY=casee_xxx" > .env
# 2. build & start
docker compose -f docker/docker-compose.yml up -d
# 3. check status
docker compose -f docker/docker-compose.yml psOption B — Connect to the Hosted MCP Server
No installation needed. The server is already deployed and running:
MCP endpoint : https://causalai.me:8100/mcp
Transport : Streamable-HTTP
Server : casee (60 MCP tools)
Backend : CaSee Intelligence Server (auto-resolved)Just grab your CASEE_IS_API_KEY from https://casee.me and plug the URL into your AI agent. Jump straight to Platform Integrations for the per-platform walkthrough — no Python, no Docker required.
Tip: For a quick sanity check before wiring a client, run the bundled test suite against the hosted endpoint:
python tests/test_mcp_server.py --url https://causalai.me:8100/mcp
🧰 MCP Tools
The server exposes 60 MCP Tools for AI Agents: retrieval, CVC administration, CVC creation and end-to-end report generation.
Tool | Description | Key Parameters |
| Complex logic retrieval: AND/OR/NOT/phrase/synonym groups |
|
| Time-series trend analysis of intelligence volume |
|
| Aggregate results by |
|
| Semantic search via CVC model: BM25 + Vector ANN + RRF fusion |
|
| Keyword search with optional CVC model sync for semantic index |
|
| Server-side batch search: many advanced queries in one round-trip |
|
| List all CVC models with collection statistics | — |
| Collection statistics for a CVC model |
|
| Reset a CVC cache (clear three-store collection data) |
|
| Cleanup progress + three-store residual reconciliation |
|
| Replay collection audit to rebuild a CVC store |
|
| Full-history intelligence purge by time cutoff (dry-run supported) |
|
| Full-history purge progress + residual reconciliation |
|
v1.2.0 (2026-09-12): added
batch_searchplus CVC administration tools (list_cvc_models_tool/cvc_stats_tool/cvc_cache_purge_tool/cvc_cleanup_status_tool/cvc_reindex_tool), and full-history purge (intelligence_purge_tool/intelligence_purge_status_tool), powered by the upgradedcaseeSDK 1.9.0.v1.10.0 (2026-11-17): public-surface hardening — added
sanitize.pyresponse projection applied at both tool exits (opaquesource_id, no source catalogs /top_sourceslists, Google News collection-channel fingerprints normalized to公开媒体/public_news); pinnedcaseeSDK wheel upgraded to 2.0.0 (source-enumeration and gnews client helpers removed upstream).v1.7.1 (2026-11-13): ledger audit fixes —
direction=refund|charge|grantfiltering,older_cursoralias, page-based paging andsummary.refunded_countover the full history;billing.ledger_querynow points at the matching ledger direction.v1.7.0 (2026-11-12): full
/api/v1/openapicoverage — added credits / ledger / quota tools,casee_download_report(+ theTEMPLATE_TOO_LARGE413 fallback), chart catalog / preview / bundle, report template CRUD, CVC inspection (entities / ontology / intelligence / exports) and business insights. Large artifacts are saved toCASEE_DOWNLOAD_DIR.v1.6.0 (2026-11-02): CVC creation tools now use async job endpoints (
/companies/search-jobs//cvc-models/creation-jobs) with a boundedwait_seconds; addedget_company_search_job/get_cvc_creation_jobfor job polling when the wait budget is exhausted.
Report tools (v1.4)
Tool | Description | Key Parameters |
| List system + tenant report templates |
|
| Pre-flight: sections, charts, gaps, compatibility, credits |
|
| Create an async report job (1 Credit) |
|
| Poll status, quality, artifacts and share link |
|
| Paginated job history |
|
| Create a password-free |
|
| Export metadata (count / ETag) before a rebuild |
|
| Destructive rebuild; dry-run by default, |
|
| Gateway/backend version, API base, Credits balance | — |
Successful report tools return {ok: true, data, meta} where meta carries
elapsed_ms, request_id (when available) and next_poll_after_ms.
Failures keep the structured error fields below plus ok: false.
CVC creation tools (v1.6)
Tool | Description | Key Parameters |
| Search candidate companies for an analysis goal; creates an async job and polls up to |
|
| Create a CVC draft (company names or objects) via an async job; returns |
|
| Poll a company-search job by |
|
| Poll a CVC-creation job by |
|
| Phase progress, current step, failure attribution and polling hints; supports long-poll and incremental logs |
|
Flow:
search_cvc_companies(show the list, all selected by default) →create_cvc_model→rebuild_cvc_model(confirm=true, dry_run=false)→ tell the user "about 10 minutes; a completion email will be sent" and do not block. Both creation tools use the async job endpoints and return ajob_idwhen the wait budget is exhausted; continue withget_company_search_job/get_cvc_creation_job. When the user asks later, callget_cvc_build_statusand reportphases[]/failure.hint.
OpenAPI coverage tools (v1.7)
v1.7 closes the remaining /api/v1/openapi gaps, so agents no longer need to
call the REST API directly for billing, artifacts, charts, templates or CVC
inspection.
Billing & quota
Tool | Description | Key Parameters |
| Balance (three buckets), pending reservations, | — |
| Ledger reconciliation (reserve/confirm/refund) with |
|
| Key scopes, minute/day quota watermarks, accessible model count, product access | — |
Report artifacts & templates
Tool | Description | Key Parameters |
| Download HTML/Markdown/PPT(deck) to disk; returns |
|
| One-time report generation code for keyless web pages |
|
| Template detail: sections, per-section |
|
| Export a template as Markdown (fork → edit → upload) |
|
| Upload a tenant template after validation |
|
| Update a tenant template (system templates are read-only) |
|
| Soft-delete a tenant template ( |
|
| Validate without saving; returns per-error codes |
|
413 fallback: when
share_reportreturnserror_code=TEMPLATE_TOO_LARGE(HTTP 413), do not retry.details.fallback_toolpoints tocasee_download_report; download and distribute the file instead.
Charts
Tool | Description | Key Parameters |
| Chart capability dictionary; pass |
|
| Chart detail and field contract |
|
| Preview render bundle (no report quota) |
|
| Issue a |
|
CVC inspection & business insights
Tool | Description | Key Parameters |
| Tenant overview: model status, building jobs, recent reports, credits |
|
| Model metadata, graph stats and entity collections |
|
| Company list with roles, websites and selected entities |
|
| Paged ontology entity list |
|
| Entity attributes, relations, IRI and related intel |
|
| Ontology TBox (classes / properties) |
|
| Export an entity/keyword subgraph as OWL 2 DL (≤200 triples) |
|
| Search intelligence inside a CVC (keywords/sentiment/time/company) |
|
| One intelligence item plus matched entities |
|
| Export all intelligence to JSONL/JSON on disk (pre-rebuild backup) |
|
| Business dashboard (volume/sentiment/voice/events; no credits) |
|
| Market trends (heat/sources/topics) |
|
| Enterprise insight; |
|
| Market insight; |
|
| Customer insight; |
|
Discovery
Tool | Description | Key Parameters |
| Endpoint catalog (group / keyword / full parameter tables) |
|
| One endpoint's parameters, error codes and changelog |
|
| Backend-declared MCP tools/resources/prompts snapshot | — |
Large artifacts (report HTML, intelligence export, OWL) are written to
CASEE_DOWNLOAD_DIR(default:casee-downloadsunder the system temp dir) and returned withsaved_path,bytesandsha256; passinline=true(plusmax_inline_chars) to also receive the content.
MCP prompts (v1.6)
prompts/list exposes three reusable recipes:
cvc_creation— company search → user confirms (all by default) → create → build → 10 min/emailreport_generation— templates → plan → generate → poll → share → quality statementretrieval_quality_guard— degraded semantic search / zero-result disclosure rules
Retrieval Workflow (Scope-First, Keyword Search)
┌────────────────────────────────────────────────────────────────┐
│ Stage 1: Describe the query and the scope │
│ q="+EV +(battery|charging) -China" │
│ scope: category / region / language, min_tscore, days │
└──────────────────────────┬─────────────────────────────────────┘
│
▼
┌────────────────────────────────────────────────────────────────┐
│ Stage 2: search_intelligence( │
│ q="+EV +(battery|charging) -China", │
│ min_tscore=0.6, days=30 │
│ ) │
│ → Returns: verified, high-quality intelligence results │
│ → Follow up with analyze_trend / aggregate_intelligence │
└────────────────────────────────────────────────────────────────┘Semantic Search Workflow (CVC Model)
For scenarios requiring deeper semantic understanding (e.g., competitor analysis, market trend discovery, customer needs analysis), CaSee provides a Competitive Value Chain (CVC) based semantic search workflow:
┌────────────────────────────────────────────────────────────────────────┐
│ Step 1: Build CVC Model (one-time setup) │
│ • Collect intelligence items via search_with_cvc(cvc_model_id="...") │
│ • System automatically indexes items into Qdrant vector database │
│ • CVC model becomes ready for semantic search │
└──────────────────────────┬─────────────────────────────────────────────┘
│
▼
┌────────────────────────────────────────────────────────────────────────┐
│ Step 2: Semantic Search │
│ semantic_search_tool( │
│ cvc_model_id="cvc_abc12345", │
│ q="竞争对手最新AI芯片技术突破", │
│ mode="hybrid", # hybrid | semantic | keyword │
│ top_k=20, │
│ days=30, │
│ min_tscore=0.5 │
│ ) │
│ → Returns: semantically matched results with fusion scores │
└────────────────────────────────────────────────────────────────────────┘Semantic Search Modes
Mode | Description | Use Case |
| Combines BM25 keyword matching + vector similarity + RRF fusion | Best general-purpose search, balances precision and recall |
| Vector similarity search only | Finding conceptually related intelligence across different terminologies |
| BM25 keyword matching only | Exact term matching, faster response |
CVC Model ID Format
CVC model IDs follow the pattern cvc_[a-z0-9]{8,32}:
Must start with
cvc_prefixFollowed by 8-32 lowercase alphanumeric characters
Example:
cvc_abc12345,cvc_market_intel_2024
🔌 Platform Integrations
Below are step-by-step walkthroughs for wiring casee-mcp-server into each platform. Every example works with either:
Option A — your self-hosted server (stdio or
http://127.0.0.1:8100/mcp)Option B — the hosted endpoint
https://causalai.me:8100/mcp
Replace
casee_xxxwith your real key from https://casee.me, and replacehttps://causalai.me:8100/mcpwith your own URL if you self-host.
1. Claude Desktop
Claude Desktop launches MCP servers as local stdio processes, so it works best with Option A (or the url-based config below on newer versions).
Step 1: Install the server locally
pip install casee-mcp-serverStep 2: Open the Claude Desktop config file
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
If the file does not exist, create it.
Step 3: Add the casee-intelligence server
{
"mcpServers": {
"casee-intelligence": {
"command": "casee-mcp",
"env": {
"CASEE_IS_API_KEY": "casee_xxx",
"CASEE_API_BASE_URL": "https://casee.me",
"CASEE_OPENAPI_BASE_URL": "https://origin.casee.me/api/v1/openapi"
}
}
}
}Step 4: Restart Claude Desktop
Fully quit (Cmd+Q / Alt+F4) and relaunch Claude Desktop so it re-reads the config and spawns the server.
Step 5: Verify the tools
Click the tools (hammer) icon next to the composer input. You should see casee-intelligence with its 60 tools (the 5 query tools search_intelligence, analyze_trend, aggregate_intelligence, semantic_search_tool, search_with_cvc, plus batch search, CVC admin/purge, report tools and CVC creation tools).
Step 6: Try it
Ask Claude:
"Use the casee tools to search for the latest Nvidia competitive intelligence, then summarize the key findings with their credibility scores."
Claude will call search_intelligence and answer with traceable items and tscore values.
Alternative — connect to the hosted endpoint (newer Claude Desktop versions):
{ "mcpServers": { "casee-intelligence": { "url": "https://causalai.me:8100/mcp", "headers": { "X-API-Key": "casee_xxx" } } } }
2. WorkBuddy
WorkBuddy connects to MCP servers over Streamable-HTTP — ideal for the hosted endpoint (Option B) or your self-hosted server exposed on the network.
Step 1: Locate (or create) the WorkBuddy MCP config file
WorkBuddy registers MCP servers through the user-level config file:
.workbuddy/mcp.jsonBy convention, this file lives at the user's home directory (~/.workbuddy/mcp.json on macOS/Linux, %USERPROFILE%\.workbuddy\mcp.json on Windows). If it does not exist, create it.
Step 2: Add the casee-intelligence server
Edit .workbuddy/mcp.json and add an entry under mcpServers:
{
"mcpServers": {
"casee-intelligence": {
"transport": "streamable-http",
"url": "https://causalai.me:8100/mcp",
"headers": {
"X-API-Key": "casee_xxx"
}
}
}
}Field reference:
Field | Value | Required | Description |
|
| Yes | MCP transport type |
|
| Yes | MCP endpoint (replace with your self-hosted URL if needed) |
|
| Yes | Your CaSee API key from casee.me |
Note: The
X-API-Keyheader is what WorkBuddy will forward on every MCP request so the upstream casee-mcp-server can authenticate against the CaSee Intelligence backend. If you also need to override the backend URL, set it as an environment variable on the server side (e.g. in the Docker container's env), not in this client config.
Step 3: Save the file and reload WorkBuddy
Save .workbuddy/mcp.json, then trigger a config reload in WorkBuddy (typically Cmd/Ctrl+R in the MCP panel, or restart the WorkBuddy desktop app).
Step 4: Verify the tools
Open the MCP tool panel. You should see casee-intelligence with its 60 tools (the 5 query tools search_intelligence, analyze_trend, aggregate_intelligence, semantic_search_tool, search_with_cvc, plus batch search, CVC admin/purge, report tools and CVC creation tools).
Step 5: Try it
Ask WorkBuddy:
"Track the latest EV battery competition signals."
WorkBuddy will call search_intelligence and answer with traceable items and tscore values.
Self-hosted variant — if you run your own MCP server on the same machine, point
urltohttp://127.0.0.1:8100/mcpinstead. The rest of the file stays identical.{ "mcpServers": { "casee-intelligence": { "transport": "streamable-http", "url": "http://127.0.0.1:8100/mcp", "headers": { "X-API-Key": "casee_xxx" } } } }
3. Trae Work
Trae Work registers MCP servers through the global config file ~/.trae-cn/mcp_servers.json and connects over Streamable-HTTP.
Step 1: Locate the MCP config file
~/.trae-cn/mcp_servers.jsonIf it does not exist, create it.
Step 2: Add the casee-intelligence entry
{
"mcpServers": {
"casee-intelligence": {
"transport": "streamable-http",
"url": "https://causalai.me:8100/mcp"
}
}
}For self-hosted: point url to http://127.0.0.1:8100/mcp instead.
Step 3: Reload / restart Trae Work
Reload the MCP configuration (or restart Trae Work) so it picks up the new server.
Step 4: Verify the tools
Open the MCP tool panel. You should see casee-intelligence with 60 tools. Enable the ones you need.
Step 5: Ask for intelligence
Example prompt:
"Use casee search to find recent AI regulation developments, keep only high-credibility items (tscore ≥ 0.6), and summarize the trend over the last 30 days."
4. LangChain Integration
LangChain agents consume MCP tools through the official mcp Python client. The example below wraps casee-mcp into a LangChain BaseTool (stdio mode — Option A).
Step 1: Install dependencies
pip install casee-mcp-server mcp langchainStep 2: Define the tool
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
from langchain.agents import initialize_agent, AgentType
from langchain.llms import OpenAI
from langchain.tools import BaseTool
class CaseeSearchTool(BaseTool):
name = "casee_search"
description = "Search competitive intelligence with query syntax: +AND, -NOT, |synonyms"
def _run(self, query: str) -> str:
import asyncio
return asyncio.run(self._arun(query))
async def _arun(self, query: str) -> str:
async with stdio_client(
StdioServerParameters(
command="casee-mcp",
env={"CASEE_IS_API_KEY": "casee_xxx"}
)
) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool("search_intelligence",
arguments={"q": query, "days": 30})
return result.content[0].text
llm = OpenAI(temperature=0)
agent = initialize_agent(
tools=[CaseeSearchTool()], llm=llm,
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION
)
agent.run("Find EV battery competition intelligence from public media")Step 3: Run the agent
The agent now decides when to call casee_search during its reasoning loop, giving your LLM real-time, credibility-scored data instead of stale training knowledge.
Connecting to the hosted endpoint — use
StreamableHttpClientagainsthttps://causalai.me:8100/mcpinstead ofstdio_client:from mcp.client.streamable_http import streamable_http_client from mcp import ClientSession async def call_hosted(query: str) -> str: async with streamable_http_client( url="https://causalai.me:8100/mcp", headers={"X-API-Key": "casee_xxx"}, ) as (read, write): async with ClientSession(read, write) as session: await session.initialize() result = await session.call_tool( "search_intelligence", arguments={"q": query, "days": 30}) return result.content[0].text
5. CrewAI Integration
CrewAI agents use LangChain-style tools. Wrap the MCP call in a @tool-decorated function so your Crew agents can retrieve intelligence during their tasks (stdio mode — Option A).
Step 1: Install dependencies
pip install casee-mcp-server mcp langchain crewaiStep 2: Define the tool & Crew
from crewai import Agent, Task, Crew, Process
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
from langchain.tools import tool
@tool
async def search_intel(q: str) -> str:
"""Search competitive intelligence. q: query syntax like +EV +(battery|charging)"""
async with stdio_client(
StdioServerParameters(command="casee-mcp", env={"CASEE_IS_API_KEY": "casee_xxx"})
) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool("search_intelligence",
arguments={"q": q, "days": 30})
return result.content[0].text
analyst = Agent(
role="Competitive Intelligence Analyst",
goal="Retrieve and analyze market intelligence from public media",
tools=[search_intel],
)
task = Task(
description="Search for EV battery technology intelligence and summarize key findings",
agent=analyst,
)
crew = Crew(agents=[analyst], tasks=[task], process=Process.sequential)
result = crew.kickoff()Step 3: Run the crew
crew.kickoff() runs the analyst agent, which calls search_intel to pull real-time intelligence into its analysis.
Connecting to the hosted endpoint — swap
stdio_clientforstreamable_http_client(url="https://causalai.me:8100/mcp", headers={"X-API-Key": "casee_xxx"})exactly as shown in the LangChain section above.
⚠️ Error Handling
Every MCP tool returns a JSON object. On failure, the payload is a structured error envelope instead of an opaque SDK exception:
Field | Type | Meaning |
| string | Legacy SDK exception class (kept for backward compatibility) |
| string | Stable machine-readable code — agents should branch on this field |
| string | Human-readable upstream message |
| int | null | Upstream HTTP status when known |
| int | null | Upstream business code when available |
| object | Structured fields ( |
| string | Actionable next step |
| bool | Whether retrying the same call can succeed |
| string |
|
Error codes
| HTTP | Meaning | Agent action |
| 402 | Tenant Credits balance is too low | Do not retry; top up or contact CaSee support |
| 403 | API key is valid, but the tenant has not subscribed to the required product module | Do not retry; ask an administrator to enable the product |
| 403 | API key lacks a required scope | Create a key with the needed scope |
| 403 | Tenant account is disabled | Contact an administrator |
| 401 | API key missing/invalid/revoked | Check |
| 429 | Rate limit or quota exceeded | Retry after |
| 422 | Request parameters invalid | Fix the request; see |
| 413 | Report/template exceeds the share or size limit | Do not retry; use |
| 409 | Report job not finished or concurrency-limited | Poll |
| 400 | Chart code unknown or not agent-supported | Reselect with |
| 409 | No chart data for this CVC/time window | Choose another chart or widen |
| 404 | Report template not found | Use |
| 400 | Template structure, chart code, placeholder or namespace invalid | Validate with |
| 409 | Rebuild requires explicit confirmation | Retry with |
| 404 | Resource not found (e.g. | Verify the identifier |
| — | Client-side timeout | Retry later or increase |
| — | DNS/connection/TLS failure | Check |
| 5xx | Upstream server error | Retry later; contact support if persistent |
| any | Other upstream API error | Inspect |
| — | Unexpected client-side error | Inspect |
Credits insufficient (402)
{
"error": "APIError",
"error_code": "CREDITS_INSUFFICIENT",
"message": "Credits点数不足,需要1.0点,当前余额0.0点。请联系CaSee团队追加Credits。",
"status_code": 402,
"code": 402,
"details": {
"error": "CREDITS_INSUFFICIENT",
"required_credits": 1.0,
"current_credits": 0.0,
"operation": "report_generate",
"contact_email": "info@xcasee.com",
"contact_wechat": "@casee_me",
"contact_url": "/billing/service-contact"
},
"hint": "Insufficient Credits (required=1.0, current=0.0); top up or contact CaSee support, then retry.",
"retryable": false,
"action": "contact_support"
}Missing product permission (403)
The API key is valid; only the tenant subscription is missing. Do not treat this as an invalid key.
{
"error": "AuthenticationError",
"error_code": "PRODUCT_ACCESS_DENIED",
"message": "当前租户未开通「客户情报平台」,请开通该产品后重试",
"status_code": 403,
"code": null,
"details": {
"product": "客户情报平台",
"contact_email": "info@xcasee.com",
"contact_wechat": "@casee_me",
"contact_url": "/billing/service-contact"
},
"hint": "The API key is valid, but the tenant has not subscribed to the required product module \"客户情报平台\". Ask an administrator to enable it and retry.",
"retryable": false,
"action": "contact_admin"
}Product modules referenced by details.product / details.module_id:
module_id | Product |
| 产品竞争情报平台 |
| 市场情报平台 |
| 客户情报平台 |
| API 服务集成平台 |
| 情报采集服务 |
| 决策仿真推理系统 |
Transport-level authentication errors
When the Streamable-HTTP gateway is enabled (MCP_REQUIRE_API_KEY=true), protected JSON-RPC methods fail before reaching a tool:
HTTP |
| Meaning |
401 |
|
|
401 |
| Key invalid or revoked |
401 |
| Key works on is-server but is not registered in EIRS OpenAPI; use a |
503 |
| Key-verification service unavailable; retry after |
🐳 Docker Deployment
# Clone and build
git clone https://github.com/xcasee/casee-mcp-server.git
cd casee-mcp-server
# Set your API key
echo "CASEE_IS_API_KEY=casee_xxx" > .env
# Start
docker compose -f docker/docker-compose.yml up -d
# Check health
docker compose -f docker/docker-compose.yml ps
curl -X POST http://localhost:8100/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'⚙️ Configuration
Environment Variable | Required | Default | Description |
| Yes | — | Deployment is-server key (get at https://casee.me; legacy |
| No |
| CaSee Intelligence Server URL |
| No |
| Request timeout (seconds) |
| No |
|
|
| No |
| Streamable-HTTP listen address |
| No |
| Streamable-HTTP listen port |
| No |
| Streamable-HTTP endpoint path |
| No | derived | Full OpenAPI base for report tools (defaults to |
| No | derived | Portal origin used for absolute share/report links |
| No |
| Read timeout (seconds) for report/plan calls |
| No |
|
|
| No |
| Enforce |
📊 Architecture
┌──────────────────────────────────────────────────────────────────┐
│ AI Agent Platform Layer │
│ ┌──────────┐ ┌──────────┐ ┌──────────────┐ ┌────────────┐ │
│ │WorkBuddy │ │ Trae Work│ │Claude Desktop│ │LangChain │ │
│ └────┬─────┘ └────┬─────┘ └──────┬───────┘ └─────┬──────┘ │
└───────┼──────────────┼──────────────┼───────────────┼───────────┘
│ │ │ │
│ MCP Protocol (stdio / Streamable-HTTP) │
│ │ │ │
┌───────┴──────────────┴──────────────┴───────────────┴───────────┐
│ casee-mcp-server (this project) │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Tools: 5 query tools + batch_search / CVC admin │ │
│ │ (stats, cache purge, cleanup, reindex, list) │ │
│ │ + full-history purge / status │ │
│ └──────────────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ casee SDK (search_advanced / │ │
│ │ semantic_search / search_batch / cvc_* / │ │
│ │ intelligence_purge / ...) │ │
│ └──────────────────────────────────────────────────────────┘ │
└───────────────────────────┬─────────────────────────────────────┘
│ HTTP (X-API-Key)
┌───────────────────────────┴─────────────────────────────────────┐
│ CaSee Intelligence Server (is_server) │
│ /v1/searchx │ /v1/search │ /v1/semantic-search │
│ /v1/semantic-search │ /v1/cvc/* │ ... │
└─────────────────────────────────────────────────────────────────┘🎯 Use Cases — Competitive Intelligence in Action
This chapter walks through a complete, end-to-end competitive intelligence workflow, applied through casee-mcp-server's query tools. Every step is given both as a direct API call and as the equivalent MCP Tool invocation your AI agent will use.
Scenario — Global EV Market Intelligence
A market intelligence team at an automotive OEM needs to track the global New Energy Vehicle (NEV / EV) market in real time:
Dimension | Value |
Vendors | Tesla, BYD, NIO, Xpeng, Li Auto, Volkswagen |
Products | EV, electric vehicle, battery, charging, BEV, plug-in hybrid |
Target markets | China, Europe, US, Southeast Asia |
Topics | market share, pricing strategy, battery tech, charging infra, policy & regulation |
Trust requirement | only high-credibility items (tscore ≥ 0.6) |
Time window | last 30 days |
Step 1 — Define the Intelligence Requirement
Translate the business requirement into a structured query:
Group | Type | Terms |
Vendor | OR |
|
Product | AND |
|
Market | OR |
|
Exclude | NOT |
|
In search-engine style query syntax (the q parameter of search_intelligence):
+(Tesla|BYD|NIO|Xpeng|Volkswagen) +(EV|"electric vehicle"|battery|charging) +(China|Europe|US) -rumorStep 2 — Scope and Retrieve the Intelligence
Constrain the search scope (category / region / language) and retrieve:
Direct API:
curl -G -H "X-API-Key: $CASEE_IS_API_KEY" \
"https://casee.me/v1/searchx" \
--data-urlencode 'q=+(Tesla|BYD|NIO|Xpeng|Volkswagen) +(EV|battery|charging) +(China|Europe|US) -rumor' \
--data-urlencode 'min_tscore=0.6' \
--data-urlencode 'days=30' \
--data-urlencode 'limit=50'Via MCP (call from your agent):
Tool: search_intelligence
Arguments:
q = '+(Tesla|BYD|NIO|Xpeng|Volkswagen) +(EV|battery|charging) +(China|Europe|US) -rumor'
min_tscore = 0.6
days = 30
limit = 50The result is a list of verified, high-credibility intelligence items — each with title, an opaque source_id, published_at, tscore, and a url that resolves to the originating public article.
Step 3 — Analyze & Visualize the Intelligence
Once you have the items, the agent (or a downstream BI tool) performs four standard analyses. Each is also available as a one-shot MCP Tool call:
Analysis | Description | MCP Tool |
Vendor mention frequency | How many items mention each vendor | custom aggregation over |
Category / region contribution | Items / avg-tscore per group |
|
Time-series trend | Weekly / monthly volume, find inflection points |
|
Structured export | JSON for downstream BI / LLM | iterate |
Example MCP conversation (the agent calls them in sequence):
User: "Give me an EV market briefing for the last 30 days."
Agent:
→ search_intelligence(q='+(Tesla|BYD|NIO|Xpeng|Volkswagen) +(EV|battery|charging) +(China|Europe|US)',
min_tscore=0.6, days=30)
→ analyze_trend(q='+(Tesla|BYD|NIO|Xpeng|Volkswagen) +(EV|battery|charging) +(China|Europe|US)',
days=30)
→ aggregate_intelligence(q='+(Tesla|BYD|NIO|Xpeng|Volkswagen) +(EV|battery|charging) +(China|Europe|US)',
dimension="region", days=30)
→ Summarize: vendor-by-vendor movement, regional split, week-over-week change,
and call out any items with tscore ≥ 0.8 as 'high-credibility signals'.This is the scope-first retrieval pattern (see MCP Tools): constrain by category / region / language, retrieve, then aggregate / trend — turning a noisy LLM answer into a traceable, quantified competitive intelligence brief.
Other Reference Use Cases
The same pattern works for any vertical. Three additional scenarios documented at api-docs:
Scenario | User | Question | Suggested |
Cloud AI competitive landscape | Cloud vendor marketing team | "Compare AWS / Azure / GCP AI services — features, pricing, market share, customer cases, last 90 days, tscore ≥ 0.6" |
|
Consumer-electronics demand signals | Smartwatch product manager | "Analyze consumer feedback on smartwatches — health monitoring demand, battery-life satisfaction" |
|
Global EV market briefing | Auto industry analyst | "Global NEV market — Tesla/BYD/NIO moves, battery tech trends, regional policy changes, last 30 days, tscore ≥ 0.6" |
|
For all three, the agent applies the same three-step pattern: define query → search_intelligence (scoped by category / region / language) → analyze / aggregate / trend → summarize.
Business Value of This Workflow
What you get | How it's enabled |
Traceable answers | Every item links to a |
Quantified credibility |
|
Multi-dimensional analysis | Trend, category / region aggregate, vendor aggregate — all native MCP tools |
Real-time freshness |
|
Lower manual effort | Replaces "search → read → filter → copy-paste" with one agent prompt |
Pluggable into any stack | Same tools work from Claude Desktop, WorkBuddy, Trae Work, LangChain, CrewAI |
📄 License
MIT © CaSee
🔗 Links
API Key: https://casee.me
API Documentation: https://casee.me/api-docs
CaSee SDK: https://casee.me/sdk/
MCP Protocol: https://modelcontextprotocol.io
🔄 Language / 语言
💡 Semantic Search Examples
Example 1: Competitor Analysis with Semantic Search
Analyze competitor AI chip technology breakthroughs using semantic search:
# Build CVC model by collecting intelligence
search_with_cvc(
q="+NVIDIA +(AI|chip|GPU) +(breakthrough|launch|announcement)",
cvc_model_id="cvc_nvidia_ai_chip",
days=90,
min_tscore=0.6
)
# Perform semantic search
semantic_search_tool(
cvc_model_id="cvc_nvidia_ai_chip",
q="最新AI芯片技术突破和市场动态",
mode="hybrid",
top_k=20,
days=30,
min_tscore=0.5
)Example 2: Market Trend Discovery
Discover emerging market trends beyond keyword matches:
# Step 1: Create a market intelligence CVC model
search_with_cvc(
q="+market +(trend|growth|emerging) +(technology|AI|cloud)",
cvc_model_id="cvc_market_trends_2024",
days=180,
min_tscore=0.5
)
# Step 2: Semantic search for related concepts
semantic_search_tool(
cvc_model_id="cvc_market_trends_2024",
q="新兴技术市场机会和增长趋势",
mode="semantic", # pure semantic search for concept matching
top_k=30,
days=90,
min_tscore=0.4
)Example 3: Customer Needs Analysis
Analyze customer needs and pain points across different terminologies:
# Build customer voice CVC model
search_with_cvc(
q="+customer +(feedback|complaint|review|need) +(product|service|experience)",
cvc_model_id="cvc_customer_voice",
days=90,
min_tscore=0.4
)
# Semantic search for customer needs
semantic_search_tool(
cvc_model_id="cvc_customer_voice",
q="用户痛点和产品改进建议",
mode="hybrid",
top_k=25,
days=30,
min_tscore=0.4
)Response Format
Semantic search responses include fusion statistics:
{
"count": 15,
"items": [...],
"fusion": {
"mode": "hybrid",
"vector_hits": 15,
"bm25_hits": 12,
"degraded": []
},
"search_information": {
"fusion": {
"vector_hits": 15,
"bm25_hits": 12,
"degraded": []
}
}
}Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and monitor source-backed AI agent ecosystem signals, briefings, deltas, and source health.
Structured, cited, real-world data from 300+ sources and the open web for your AI agents.
Verified, sourced, real-time intelligence layer for AI agents.
AI brand visibility, competitor mentions and citation evidence for agents. Cleotic account required.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform real-time business intelligence tasks including competitive analysis, website scoring, review analysis, and market research.MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to search and retrieve market signals, revenue ideas, and growth tactics from 2,000+ curated entries across 18 sources.-
- AlicenseNot gradedqualityDmaintenanceProvides social intelligence tools for AI agents to analyze competitor sentiment, trends, and brand mentions from X/Twitter data.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to query live trend data and historical search volume across 30+ platforms like Google, TikTok, YouTube, Amazon, and Reddit, including growth comparisons and top-ranking trends.318MIT