Skip to main content
Glama
Murtaza8-bit

Market Detective MCP

by Murtaza8-bit
README.md
# ๐Ÿ•ต๏ธ Market Detective

> **Investigate the move. Find the signal. Trace the evidence.**

Market Detective is a **read-only AI market intelligence agent** that investigates unusual activity across crypto markets and explains what is happening using multiple market signals.

## โœจ Features

### ๐Ÿ”Ž Asset Investigation

Enter any supported asset and get a detailed investigation of its current market behavior.

### ๐Ÿšจ Market Anomaly Detection

Identify assets experiencing unusual activity and rank them using an anomaly score.

### ๐Ÿ“Š Multi-Signal Analysis

Market Detective combines:

* ๐Ÿ“ˆ Price movement
* ๐Ÿ“Š Trading volume
* ๐ŸŒช๏ธ Volatility
* โš–๏ธ Order-book imbalance
* ๐Ÿ”— Market correlation

to determine whether a move is ordinary or unusual.

### ๐Ÿงช Market Autopsy

Investigate a major move and see the evidence behind it, including the sequence of signals that appeared.

### ๐Ÿ•’ Evidence Timeline

Follow how an event developed over time, from the initial signal to the final investigation result.

### ๐Ÿง  Explainable Insights

Instead of only displaying charts and numbers, the agent explains **why** an asset was flagged and what signals contributed to the result.

### ๐Ÿ” Market Scanner

Scan multiple markets and quickly identify the assets with the strongest abnormal activity.

### ๐Ÿ’ป Interactive React Dashboard

A modern React-based interface designed around investigation rather than traditional trading dashboards.

---

## ๐Ÿ”Œ Binance Agent OS Integration

Market Detective follows the **Binance Agent OS + MCP architecture pattern**.

It does not require users to provide Binance API keys or connect a wallet.

The MCP-capable host connects to Binance Agent OS:

```text
https://agent.binance.com/mcp/agentic
```

Binance Agent OS provides the market data through its MCP tools, which is then handed to Market Detective for analysis.

```text
Binance Agent OS
        โ†“
Binance MCP
        โ†“
Market Data
        โ†“
Market Detective MCP
        โ†“
Forensic Analysis
        โ†“
Investigation Results
        โ†“
React Dashboard
```

This separation keeps **authentication and data access with the Agent OS host**, while Market Detective focuses on **analysis, anomaly detection, and explanation**.

---

## ๐Ÿ›ก๏ธ Read-Only by Design

Market Detective is focused entirely on market intelligence.

โœ… Read-only
โœ… No wallet connection
โœ… No API-key onboarding
โœ… No trading or order execution
โœ… No transfers
โœ… No deposits or withdrawals
โœ… No account management

---

## ๐Ÿ› ๏ธ Built With

โš›๏ธ React
โšก Vite
๐ŸŸข Node.js
๐Ÿ”Œ MCP
๐Ÿค– Binance Agent OS
๐Ÿ“Š Market Analytics

---

## ๐Ÿš€ Getting Started

```bash
npm install
npm test
npm run build
```

Start the backend:

```bash
npm run server
```

Start the frontend:

```bash
npm run dev
```

Then open the local Vite URL in your browser.

---

## ๐ŸŽฏ Vision

Market Detective is built around a simple idea:

> **Don't just watch the market. Investigate it.**