Skip to content

feat(apps): Add MCP Server for Claude/AI Agent Integration#3446

Open
ChoppaTheMegalodon wants to merge 1 commit intopyth-network:mainfrom
ChoppaTheMegalodon:feat/mcp-server
Open

feat(apps): Add MCP Server for Claude/AI Agent Integration#3446
ChoppaTheMegalodon wants to merge 1 commit intopyth-network:mainfrom
ChoppaTheMegalodon:feat/mcp-server

Conversation

@ChoppaTheMegalodon
Copy link

Summary

Adds a Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with Pyth Network oracle data. This positions Pyth as the first oracle provider with native AI agent integration.

What's Included

Tools (11)

  • get_price / get_prices - Current price data with confidence intervals
  • get_twap / get_ema_price - Time-weighted and EMA prices
  • get_historical_prices / get_ohlcv - Historical data
  • search_assets / get_asset_info - Asset discovery
  • get_price_feed_ids / subscribe_price_updates / get_vaa - Feed management

Resources (5)

  • Network status, feed catalog, popular feeds, API docs, integration guide

Prompts (5)

  • analyze_price_feed, compare_assets, market_overview, volatility_report, price_deviation_check

Testing

121 unit tests included:

cd apps/mcp-server
npm install
npm test                      # Unit tests
RUN_INTEGRATION=true npm test # Integration tests (real API)

Usage

Add to Claude Code MCP config:

{
  "mcpServers": {
    "pyth": {
      "command": "node",
      "args": ["path/to/apps/mcp-server/dist/index.js"]
    }
  }
}

Context

This was requested by Tejas - see Slack thread. The devex success team will take ownership for production readiness.

Checklist

  • Tests pass (121/121)
  • Documentation included (README, ARCHITECTURE, EXAMPLES)
  • Privacy policy section in README
  • Apache-2.0 license

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

Adds a Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with Pyth Network oracle data.

## Features
- 11 tools: get_price, get_prices, get_twap, get_ema_price, get_historical_prices, get_ohlcv, search_assets, get_asset_info, get_price_feed_ids, subscribe_price_updates, get_vaa
- 5 resources: network status, feed catalog, popular feeds, API docs, integration guide
- 5 prompts: analyze_price_feed, compare_assets, market_overview, volatility_report, price_deviation_check
- Comprehensive test suite (121 tests)
- Full Hermes API integration with retries, validation, rate limiting

## Usage
```bash
cd apps/mcp-server
npm install
npm run build
npm start
```

Then add to Claude Code MCP config to enable Pyth data access.

## Testing
```bash
npm test                      # Unit tests
RUN_INTEGRATION=true npm test # Integration tests (real API)
```

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ChoppaTheMegalodon ChoppaTheMegalodon requested a review from a team as a code owner February 6, 2026 03:33
@vercel
Copy link

vercel bot commented Feb 6, 2026

@ChoppaTheMegalodon is attempting to deploy a commit to the Pyth Network Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments