# Lava (熔岩) · A-Share News Heat & Institution Coverage MCP [![MCP](https://img.shields.io/badge/MCP-Streamable%20HTTP-blue)](https://lava.ai-dolphin.com/subscribe/docs) [![Tools](https://img.shields.io/badge/Tools-20%20Read--Only-green)](https://lava.ai-dolphin.com/subscribe/v1/openapi.json) [![OAuth2](https://img.shields.io/badge/Auth-OAuth%202.1%20%7C%20Bearer%20Key-orange)](https://lava.ai-dolphin.com/.well-known/mcp/server-card.json) **Lava (熔岩)** provides a hosted **Streamable HTTP MCP server & Read-Only REST API** tracking **A-share stock & concept sector news mention heat, structured key points, first-mention streams, accelerating heat momentum, and anonymized institution/KOL coverage scores (including Point-in-Time historical panels)**. > **Objective Statistics Only / 合规声明**:All endpoints and tools return strictly read-only, objective discussion counts, anonymized `agency_id` scores (`AG...`), media-hit statistics, and factual summaries aggregated from public sources. They do **NOT** provide trading signals, price targets, investment advice, or negative risk alerts. --- ## Quick Connection (No Local Proxy Needed) - **Endpoint**: `https://lava.ai-dolphin.com/subscribe/v1/mcp` - **Transport**: Streamable HTTP (`POST`, JSON-RPC 2.0) - **Authentication**: - **OAuth 2.1** (PKCE `S256` + Dynamic Client Registration via RFC 9728/8414), **OR** - **API Key**: `Authorization: Bearer lvk_YOUR_KEY` (Sign up at [lava.ai-dolphin.com/subscribe](https://lava.ai-dolphin.com/subscribe) — new accounts receive **¥20 starter credit (4,000 calls)** plus an automatic **¥30 first-call bonus (+6,000 calls)** after the first successful API/MCP call, totaling **¥50 / 10,000 free calls**; `initialize`, `tools/list`, `ping`, and `get_account` are **free**). - **Discovery & Docs**: - Human Docs & Interactive Quickstart: `https://lava.ai-dolphin.com/subscribe/docs` - Public Daily Heat Radar & RSS 2.0: `https://lava.ai-dolphin.com/monitor/radar` · `https://lava.ai-dolphin.com/feed/daily-heat.xml` - Server Card JSON: `https://lava.ai-dolphin.com/.well-known/mcp/server-card.json` - OpenAPI 3.0 Spec: `https://lava.ai-dolphin.com/subscribe/v1/openapi.json` - Skill Template: `https://lava.ai-dolphin.com/subscribe/v1/skill` - LLM Index: `https://lava.ai-dolphin.com/llms.txt` · `https://lava.ai-dolphin.com/llms-full.txt` --- ## 1-Minute Client Setup ### 1. Cursor Add to `.cursor/mcp.json` (OAuth 2.1 mode — no manual key needed if your client supports MCP OAuth): ```json { "mcpServers": { "lava": { "url": "https://lava.ai-dolphin.com/subscribe/v1/mcp" } } } ``` Or with Bearer API Key: ```json { "mcpServers": { "lava": { "type": "streamable-http", "url": "https://lava.ai-dolphin.com/subscribe/v1/mcp", "headers": { "Authorization": "Bearer lvk_YOUR_KEY" } } } } ``` ### 2. Claude Code ```bash claude mcp add --transport http lava https://lava.ai-dolphin.com/subscribe/v1/mcp \ --header "Authorization: Bearer lvk_YOUR_KEY" ``` ### 3. OpenAI Codex CLI ```bash codex mcp add lava --url https://lava.ai-dolphin.com/subscribe/v1/mcp ``` Or in `~/.codex/config.toml` with API key env var `LAVA_API_KEY`: ```toml [mcp_servers.lava] url = "https://lava.ai-dolphin.com/subscribe/v1/mcp" bearer_token_env_var = "LAVA_API_KEY" ``` ### 4. Cherry Studio / Cline / Qoder / WorkBuddy / 千问办公 - Transport: `streamable-http` (or `http` in WorkBuddy 5.9.3+ OAuth mode) - URL: `https://lava.ai-dolphin.com/subscribe/v1/mcp` - Header (if using API Key): `Authorization: Bearer lvk_YOUR_KEY` - Client guides & screenshots: `https://lava.ai-dolphin.com/subscribe/docs#ai-office` --- ## Available MCP Tools (20 Read-Only Tools) | Category | Tool Name | Purpose | |---|---|---| | **Account** | `get_account` | Check balance, plan & quota (**Free**) | | **Stock Heat & News** | `get_stock_news_heat` | Stock mention counts, institution coverage & summaries (`days=1..90`) | | | `get_stock_heat_windows` | Multi-window (`1h/4h/24h/7d`) + 24h hourly heat series | | | `get_stock_heat_panel` | Daily historical heat panel (`mentions`, `agencies`) | | | `search_news_flow` | Keyword search across structured key points (`since` up to 180d) | | | `get_news_stock_hits` | Media hit stream by stock or market-wide | | | `get_morning_digest` | Structured morning heat summary | | | `check_portfolio` | Batch heat check for multiple watchlist codes | | **Concepts & Rankings** | `get_concept_stock_heat` | Rank stocks within a concept board | | | `get_stock_concept_heat` | Map concepts associated with a stock | | | `get_market_hot_stocks` | Market-wide hottest stocks (`1h` to `7d`) | | | `get_market_hot_concepts` | Market-wide hottest concept sectors (`1h` to `7d`) | | | `get_accelerating_hot_stocks` | Stocks with rising mention velocity (`heat_chg_1d`, `heat_chg_3d`, `heat_z20`) | | | `get_first_mention_stocks` | Stocks newly mentioned after 7 quiet days | | | `get_weighted_hot_stocks` | Heat weighted by historical `agency_id` scores | | **Agency / PIT Analytics** | `get_agency_ranking` | Current agency coverage ranking (`450..1500` scale) | | | `get_agency_pit` | **Point-in-Time** historical score snapshot (no look-ahead bias) | | | `get_agency_history` | PIT score series for one `agency_id` | | | `list_agency_pit_dates` | Available PIT publication dates | | | `get_agency_coverage` | Stock agency coverage time-series & new coverage | --- ## REST Quickstart (Python) ```python import os, requests r = requests.get( "https://lava.ai-dolphin.com/subscribe/v1/hot/accelerating", params={"window": "24h", "limit": 5}, headers={"Authorization": f"Bearer {os.environ['LAVA_API_KEY']}"}, timeout=15, ) print(r.json()["data"]) ``` --- ## Security & Free Public Web Tools - Do **not** run untrusted local forwarding proxies; connect directly to the official HTTPS endpoint `https://lava.ai-dolphin.com/subscribe/v1/mcp`. See [SECURITY.md](https://github.com/dustinliang666-blip/lava-mcp/blob/main/SECURITY.md). - Free no-login web tools & objective public feeds: - Daily Objective Heat Radar & RSS 2.0 Feed: https://lava.ai-dolphin.com/monitor/radar · https://lava.ai-dolphin.com/feed/daily-heat.xml - Stock Concept Lookup: https://lava.ai-dolphin.com/tools/stock-concepts - Concept Component Lookup: https://lava.ai-dolphin.com/tools/concept-stocks - Multi-Stock Heat Compare: https://lava.ai-dolphin.com/tools/stock-heat-compare