Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Multi-asset market intelligence MCP server that monitors cryptocurrency movements, equity data, and ECB foreign-exchange reference rates to produce structured market briefs using Gemini.

README.md

Market Inspector

Market Inspector is a multi-asset market intelligence workflow built with Next.js 16, the Model Context Protocol (MCP), and Gemini 3.5 Flash. It monitors cryptocurrency movements, combines them with current equity data and ECB foreign-exchange reference rates, and produces structured market briefs.

The project was created for the Google × Kaggle AI Agents Intensive capstone, in the Agents for Business track.

System overview

Market Inspector exposes 11 MCP tools:

  • 4 cryptocurrency tools
  • 3 equity tools
  • 3 foreign-exchange tools
  • 1 zero-cost system status tool

Three coordinated roles divide the workflow:

| Role | Responsibility | |---|---| | Anomaly Detector | Scans the top cryptocurrency assets and classifies significant 24-hour movements. | | Orchestrator | Serializes scans, stores the latest in-memory state, and publishes updates through Server-Sent Events. | | Brief Generator | Provides Gemini with a seven-result market snapshot and eight optional MCP tools for additional context. |

Market-data fallbacks:

  • Crypto price: CoinGecko → Binance when CoinGecko is rate-limited.
  • Crypto global data and top movers: CoinGecko → CoinPaprika.
  • Equity quotes and candles: Finnhub → Alpha Vantage → Yahoo Finance.
  • Foreign exchange: Frankfurter using ECB reference rates.

Asset coverage

| Asset class | Dashboard | Automatic anomaly detection | Gemini snapshot | |---|---|---|---| | Cryptocurrency | Global metrics, top movers, ticker | Yes, every 60 seconds | Global market and top 10 assets | | Equities | Six large-cap technology quotes and ticker | No | AAPL, MSFT, NVDA, GOOGL | | Foreign exchange | Seven USD reference rates | No | USD against EUR, GBP, JPY, CHF |

Quick start

Requirements:

  • Node.js 22.x
  • pnpm 10.34.4
git clone https://github.com/dcosodev/market-inspector.git
cd market-inspector
corepack enable
pnpm install --frozen-lockfile
cp .env.local.example .env.local
pnpm dev

The application is available at http://localhost:3000.

Environment variables

| Variable | Purpose | Required | |---|---|---| | GEMINI_API_KEY | Manual AI briefs and the chat endpoint | For Gemini features | | FINNHUB_API_KEY | Primary equity source | Recommended | | ALPHA_VANTAGE_API_KEY | Secondary equity fallback | Optional | | LOG_LEVEL | Structured JSON logging threshold | Optional (info) | | ENABLE_PUBLIC_CHAT | Enables /api/chat in production when set to true | Optional (false) |

Yahoo Finance provides the final no-key equity fallback. CoinGecko, CoinPaprika, Binance, and Frankfurter also require no key.

Main routes

| Route | Purpose | |---|---| | / | Project overview | | /dashboard | Market dashboard and architecture view | | /api/mcp | MCP Streamable HTTP endpoint | | /api/tools/call | Browser-safe route for dashboard read-only tool calls | | /api/anomalies | Current state and manual AI scan stream | | /api/stream | Continuous anomaly-state SSE stream | | /api/chat | Optional Gemini chat backed by the MCP tool catalog; disabled in production unless ENABLE_PUBLIC_CHAT=true | | /api/health | Zero-cost service health response; no external API calls |

Agent workflow

  1. The deterministic detector scans cryptocurrency movements without calling Gemini.
  2. A manual AI scan refreshes anomalies and preloads seven market-data results.
  3. Gemini receives the snapshot and can request one or more of eight selected MCP tools when additional context is needed.
  4. Execution progress, requested tools, and the final informational brief are streamed to the dashboard.
  5. Source-level rate limits, caching, circuit breaking, and fallbacks reduce the effect of upstream failures.

The dashboard stores a four-scan daily demonstration quota in localStorage. The server applies a matching four-scan in-memory per-client limit over a 24-hour window. Each notable-anomaly scan uses one to five Gemini requests, so the visible worst-case budget is twenty calls. This deliberately lightweight control conserves the demo allowance; it is a demo mitigation, not authentication, billing enforcement, or a hard global limit.

Generated briefs are informational only and are not personalized financial advice. Provider data, tool output, and user text are delimited as untrusted model context.

Verification

pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm exec playwright install chromium
pnpm test:e2e

Gemini evaluation is manual and never runs in CI:

RUN_GEMINI_EVALS=1 EVAL_CASE=broad-crypto-selloff pnpm eval:gemini

Documentation

Deployment

The repository includes a Vercel configuration for the Frankfurt region. Configure the required environment variables in the deployment platform; API keys must not be committed to the repository.

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Finance & Payments servers.