Skip to main content
Glama
echopai-mcp

echopai-mcp

Official
by echopai
README.md
# EchoPai MCP Server · 回声投研

[English](./README.md) · [简体中文](./README.zh-CN.md)

[![MCP Compatible](https://img.shields.io/badge/MCP-stdio%20%26%20Remote%20HTTP-blue?style=flat-square)](https://modelcontextprotocol.io)
[![npm](https://img.shields.io/npm/v/@echopai/mcp?style=flat-square&color=cb3837)](https://www.npmjs.com/package/@echopai/mcp)
[![License: MIT](https://img.shields.io/badge/License-MIT-gray?style=flat-square)](./LICENSE)

[![echopai/echopai-mcp MCP server](https://glama.ai/mcp/servers/echopai/echopai-mcp/badges/score.svg)](https://glama.ai/mcp/servers/echopai/echopai-mcp)
[![EchoPai MCP connector](https://glama.ai/mcp/connectors/com.huishengpai.mcp/echopai-mcp/badges/score.svg)](https://glama.ai/mcp/connectors/com.huishengpai.mcp/echopai-mcp)

**Turn any AI into an event-driven equity research analyst.**  
Equip Claude, Cursor, VS Code, Gemini CLI, or any MCP-compatible agent with **53 real-time research tools covering A-share and selected Hong Kong market capabilities** — full-text broker reports, individual analyst attribution, corporate filings, quantified sentiment cycles, and limit-up analytics, with traceable evidence for research answers.

Connect directly to our hosted **Streamable HTTP** MCP endpoint for zero-install setup. A-share and Hong Kong coverage varies by tool; global index snapshots are available, but US individual-stock market data is not yet open.

This repository additionally provides a Node.js stdio compatibility bridge for legacy hosts. It forwards the live MCP directory, tool calls and research resources instead of maintaining independent REST mappings.

---

### Official Portal Matrix

| Resource | Global (EN) | China Mainland (中文 · 回声投研) |
| :--- | :--- | :--- |
| **Official Website** | <https://echopai.com> | <https://www.huishengpai.com> |
| **Web Research Terminal** | <https://app.echopai.com> | <https://huishengpai.com/go/app> |
| **API Keys & OAuth Account** | <https://echopai.com/go/app/agent> | <https://huishengpai.com/go/app/agent> |
| **Remote MCP Endpoint** | `https://mcp.huishengpai.com/mcp` | `https://mcp.huishengpai.com/mcp` |
| **Automated AI Setup Prompt** | <https://echopai.com/agent-setup/prompt.md> | <https://www.huishengpai.com/agent-setup/prompt.md> |

---

## Why EchoPai MCP?

Most open-source stock MCP servers only wrap basic price quotes or K-line endpoints. **EchoPai** connects your AI to institutional-grade event-driven research infrastructure:

| Capability | Basic Price / Free Scripts | **EchoPai MCP (回声投研)** |
| :--- | :--- | :--- |
| **Broker Research** | None or unindexed PDFs | **Full-text broker reports** (`report`) + **analyst-level attribution** with named analyst and institution metadata (`views`) |
| **Market Events & Filings** | Delayed news headlines | Real-time announcements (`announcements_list` / `announcements_detail`), **forward-looking event calendar**, and share lockup schedules (`ownership`) |
| **Market Microstructure** | Raw OHLCV only | **Limit-up pool & streak statistics** (`limit_up_*`), quantified **sentiment cycles** (`sentiment_*`), and **concept boards** (`concepts_*`) |
| **Deployment & Auth** | Local Python/Node setup & fragile cookies | **Zero-install remote Streamable HTTP** with **Browser OAuth 2.0** or API Key; tools stay updated server-side |

---

## What It Looks Like in Action

Once connected, simply ask complex research questions in natural language. Your AI can chain multiple EchoPai tools and cite its evidence. The following are illustrative examples, not live market results:

<details>
<summary><b>Example 1: Morning Broker Research Synthesis ("Read all compute research notes from this morning and summarize")</b></summary>

> **AI automatically calls:** `search(type="views")` → `views_get` → `views(report_only=true)` → `report`
>
> * **Consensus (3 top institutes aligned):** Domestic training chip shipments revised up (40% → 55% YoY); 1.6T optical module ramp pulled forward to Q4.
> * **Divergence:** One sell-side team flags cautious CapEx guidance and yield/delivery cadence differences in Q2.
> * **Analyst Weighting:** Distinguish opinions by institution, analyst, publication time and original evidence; do not infer hit rates without supporting data.

</details>

<details>
<summary><b>Example 2: Intraday Surge Attribution ("Why is Cambricon surging today?")</b></summary>

> **AI automatically calls:** `quote` → `news` → `views` → `announcements_list` → `sentiment_overview`
>
> * **Market Microstructure:** +9.98% on 12.8B CNY turnover (8.2% turnover rate, 98th percentile over 60 days; volume z-score +3.1; main net inflow +1.1B CNY).
> * **Catalyst:** Equity incentive draft announced last night (grant price ~66% of market, covering 85% of staff, 2026–2028 revenue & profit targets).
> * **Broker Follow-up:** 3 morning notes raised earnings forecasts / target prices.
> * **Risk Check:** Verified zero reduction announcements within 30 days, zero lockup expirations within 45 days, and no regulatory inquiry letters.

</details>

---

## Quick Start (20 Seconds)

Remote Endpoint (Streamable HTTP):
```text
https://mcp.huishengpai.com/mcp
```

Supports both **Zero-Key Browser OAuth 2.0** and **Bearer API Key (`eps_live_...`)**.

### Claude Code

**Option 1: Browser OAuth (no API key needed)**
```bash
claude mcp add --transport http echopai https://mcp.huishengpai.com/mcp
```
Select `echopai` in `/mcp` to complete browser authorization.

**Option 2: API Key**
```bash
claude mcp add --transport http echopai https://mcp.huishengpai.com/mcp --header "Authorization: Bearer <YOUR_KEY>"
```

### Cursor

Add to `~/.cursor/mcp.json`:
```json
{
  "mcpServers": {
    "echopai": {
      "url": "https://mcp.huishengpai.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_KEY>"
      }
    }
  }
}
```

### VS Code (GitHub Copilot)

Add to `.vscode/mcp.json`:
```json
{
  "servers": {
    "echopai": {
      "type": "http",
      "url": "https://mcp.huishengpai.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_KEY>"
      }
    }
  }
}
```

### Claude Desktop / claude.ai / WorkBuddy

Open **Settings → Connectors**, add `https://mcp.huishengpai.com/mcp`, and click **Authorize** via browser login.

### Gemini CLI

```bash
gemini mcp add --transport http --header "Authorization: Bearer <YOUR_KEY>" echopai https://mcp.huishengpai.com/mcp
```

See [Client Configuration Guide](./docs/clients.md) for project-shared configs, environment variable tips, and headless CI/Cron usage.

---

## Tool Directory

The hosted directory currently exposes 53 hosted tools. The stdio bridge discovers these same tools live.

<!-- tools:start -->
| Category | Tools |
| :--- | :--- |
| Security & market context | `lookup`, `security_reference`, `market_calendar`, `market_indices`, `market_status` |
| Quotes & market scan | `quote`, `market_movers`, `market_digest`, `auction`, `index_snapshot`, `chart`, `bars_batch`, `scan`, `technicals` |
| Research & news | `digest`, `search`, `views`, `views_get`, `report`, `news`, `news_get` |
| Filings & events | `announcements_list`, `announcements_detail`, `events`, `calendar_earnings`, `earnings` |
| ETFs | `etf_list`, `etf_show`, `etf_flows` |
| Sentiment & limit-ups | `sentiment_overview`, `sentiment_intraday`, `hot`, `limit_up_pool`, `limit_up_summary` |
| Concept boards | `concepts_list`, `concepts_show`, `concepts_of`, `concepts_alerts`, `concepts_bars` |
| Flows, trades & margin | `fundflow`, `trades`, `margin`, `margin_movers`, `dragon_tiger`, `dragon_tiger_seat` |
| Financials & ownership | `financials_snapshot`, `financials_history`, `ownership` |
| Account, guides & feedback | `capabilities`, `whoami`, `usage`, `read_guide`, `report_issue` |
<!-- tools:end -->

- Query known canonical codes directly, e.g. `SSE:600519` or `HK:00700`; use `lookup` to resolve names and bare codes. `index_snapshot` handles CN, HK and global indices.
- Use `market_status` and `market_calendar` for CN/HK sessions and trading days. Hong Kong aggregate rankings default to HKD counters; query RMB counters by canonical code.
- For topic or body-text research, use `search(type="views", q=...)`, then pass the returned `doc_id` to `views_get(view_id=...)`. For archived long-form broker reports, filter `views(report_only=true)` and use `report`.
- `read_guide` provides research methods, tool parameters and data conventions; `capabilities(verb=...)` lists response fields. Check actual coverage, pagination and data freshness.

See [Tool Reference](./docs/tools.md) for the full directory.

---

## Local stdio compatibility (legacy hosts only)

Prefer the hosted remote MCP endpoint. If your host supports only stdio, use this bridge (Node.js ≥ 20). Authenticated calls require an API key; for browser OAuth, connect directly to the hosted endpoint:

```json
{
  "mcpServers": {
    "echopai": {
      "command": "npx",
      "args": ["-y", "@echopai/mcp"],
      "env": {
        "ECHOPAI_API_KEY": "eps_live_YOUR_KEY_HERE"
      }
    }
  }
}
```

Or run directly from a local clone:
```bash
node src/index.js --key eps_live_YOUR_KEY_HERE
```

Version 2.0 forwards the hosted MCP protocol. For a custom server, use `ECHOPAI_MCP_URL` or `--mcp-url` with the full /mcp endpoint; custom REST base URLs are no longer supported. Tool names and parameters follow the live directory.

---

## Automated AI Setup

Paste either official setup prompt URL directly to your AI assistant and ask it to establish and verify a persistent connection; skill installation is optional:

- Global: <https://echopai.com/agent-setup/prompt.md>
- China Mainland: <https://www.huishengpai.com/agent-setup/prompt.md>

---

## About EchoPai & Disclaimer

Founded in 2022 with a distributed team across New York, Singapore, and Asia-Pacific, **EchoPai (回声投研)** builds event-driven quantitative research infrastructure based on the thesis that *the market is the echo of events*.

- **Global Website**: <https://echopai.com>
- **China Website**: <https://www.huishengpai.com>
- **Web Terminal**: <https://app.echopai.com>

> **Disclaimer**: EchoPai is a financial data and research information tool—not a registered investment advisor or broker-dealer. Nothing provided by the MCP server, API, or documentation constitutes investment advice or solicitation to buy or sell any securities.

## License

[MIT](./LICENSE) © 2026 EchoPai LLC

TDQS

C2.9/5.0

Scored across 50 tools

Disambiguation3/5

Several tools have fuzzy boundaries: whoami (scopes, rate limits, monthly quota) vs usage (credit usage and remaining balance), financials_reports vs financials_series vs financials_pit, and calendar_upcoming vs events_upcoming all appear to answer nearly the same question. chart vs bars_batch and digest vs market_digest also create name-level confusion, though descriptions mostly disambiguate.

Naming Consistency3/5

There is a clear resource-prefix grouping (concepts_*, limit_up_*, sentiment_*, financials_*, announcements_*, dragon_tiger_*), which is readable. However, action verbs are inconsistent (show / detail / get / snapshot / quote / list), and many core tools are bare nouns (quote, chart, search, views, report, digest, news, scan, hot), so there is no single predictable convention.

Tool Count2/5

50 tools is at the top of the range the rubric treats as too many; even for a broad A-share data platform this is a heavy surface that raises selection cost for agents. While most tools map to real sub-domains, the granular splitting (eight concepts_* tools, four sentiment_* tools, four financials_* tools) inflates the count.

Completeness4/5

Coverage is strong across quotes, bars, fundamentals, ownership, calendars, news, research reports, concepts, scanners, limit-up analysis, dragon-tiger seats, and sentiment, with account/meta tools included. Minor gaps remain around fund/ETF and macro data, and there is no watchlist/portfolio construct, but no obvious dead ends for the stated equity-data purpose.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues