crypto pegmon mcp
crypto-pegmon-mcp
crypto-pegmon-mcp
An MCP server that tracks stablecoin peg integrity across multiple blockchains, helping AI agents detect depegging risks before they escalate.
The server supports the following USD-pegged stablecoins:
Symbol | Description |
---|---|
USDT | Tether s USD-pegged stablecoin, centrally issued. |
USDC | Circle s USD-backed stablecoin, widely used in DeFi. |
DAI | Decentralized stablecoin by MakerDAO, collateralized by crypto. |
BUSD | Binance s USD-pegged stablecoin, centrally managed. |
TUSD | TrueUSD, a USD-backed stablecoin by TrustToken. |
FRAX | Fractional-algorithmic USD stablecoin by Frax Finance. |
USDD | TRON s USD-pegged stablecoin, centrally issued. |
USDS | USD-pegged stablecoin, focused on stability. |
SUSDS | Staked USDS, yield-bearing stablecoin. |
EUSDE | Ethena s staked USD stablecoin, yield-bearing. |
USDY | Ondo s USD yield stablecoin, designed for returns. |
PYUSD | PayPal s USD-pegged stablecoin for payments. |
GUSD | Gemini Dollar, USD-backed by Gemini Trust. |
USDP | Paxos Standard, a regulated USD stablecoin. |
AAVE-USDC | Aave s USD-pegged stablecoin for lending. |
CURVE-USD | Curve Finance s USD stablecoin for DeFi pools. |
MIM | Magic Internet Money, a decentralized USD stablecoin. |
Clone the Repository:
git clone https://github.com/kukapay/crypto-pegmon-mcp.git
cd crypto-pegmon-mcp
Install Dependencies: Using uv (recommended):
uv sync
Run the Server: Using uv (recommended):
uv run main.py
The server provides four tools, accessible via the MCP interface. Below are examples for each tool and prompt.
Retrieve a list of supported stablecoins with their descriptions.
List all supported stablecoins with their descriptions.
**Supported USD-Pegged Stablecoins**:
| Symbol | Description |
|------------|--------------------------------------------------------|
| USDT | Tether s USD-pegged stablecoin, centrally issued. |
| USDC | Circle s USD-backed stablecoin, widely used in DeFi. |
| ... | ... |
Get the current price and peg deviation for a specific stablecoin.
Get the current price of USDT.
**USDT Current Price**: $1.0002, Peg Deviation: 0.02%
Retrieve historical price data for a stablecoin over a specified number of days (default: 7).
Show the price history of USDC for the last 7 days.
**USDC Historical Data (Last 7 Days)**:
| Date | Price | Deviation (%) |
|------------|--------|---------------|
| 2025-04-29 | 1.0001 | 0.0100 |
| 2025-04-30 | 0.9998 | -0.0200 |
| ... | ... | ... |
Generate a comprehensive stability report for a stablecoin, including historical data, current price, and analysis.
Analyze the peg stability of DAI over the past week.
- **DAI Historical Data (Last 7 Days)**:
| Date | Price | Deviation (%) |
|------------|--------|---------------|
| 2025-04-29 | 1.0003 | 0.0300 |
| ... | ... | ... |
- **DAI Current Price**: $1.0000, Peg Deviation: 0.00%
- **Stability Analysis for DAI**:
- Maximum Deviation: 0.15%
- Stability Status: Stable
- Note: Deviations > 3% indicate potential depegging risks.
This project is licensed under the MIT License. See the LICENSE file for details.
[
{
"description": "n Fetch the list of supported USD-pegged stablecoins with their symbols and descriptions.nn Returns:n str: A Markdown-formatted table listing stablecoin symbols and their descriptions.n ",
"inputSchema": {
"properties": {},
"title": "get_supported_stablecoinsArguments",
"type": "object"
},
"name": "get_supported_stablecoins"
},
{
"description": "n Fetch the current price of a USD-pegged stablecoin in USD and calculate peg deviation.nn Args:n coin (str): The symbol of the stablecoin (e.g., usdt , usdc , dai ).nn Returns:n str: A string with the current price and peg deviation in Markdown format.n ",
"inputSchema": {
"properties": {
"coin": {
"title": "Coin",
"type": "string"
}
},
"required": [
"coin"
],
"title": "get_current_priceArguments",
"type": "object"
},
"name": "get_current_price"
},
{
"description": "n Fetch historical price data for a USD-pegged stablecoin and return as a Markdown table.nn Args:n coin (str): The symbol of the stablecoin (e.g., usdt , usdc , dai ).n days (int, optional): Number of days for historical data. Defaults to 7.nn Returns:n str: A Markdown table with date, price, and deviation.n ",
"inputSchema": {
"properties": {
"coin": {
"title": "Coin",
"type": "string"
},
"days": {
"default": 7,
"title": "Days",
"type": "integer"
}
},
"required": [
"coin"
],
"title": "get_historical_dataArguments",
"type": "object"
},
"name": "get_historical_data"
},
{
"description": "n Generate a peg stability analysis report for a USD-pegged stablecoin.nn Args:n coin (str): The symbol of the stablecoin (e.g., usdt , usdc , dai ).n days (int, optional): Number of days for analysis. Defaults to 7.nn Returns:n str: A Markdown-formatted report with historical data, current price, and stability analysis.n ",
"inputSchema": {
"properties": {
"coin": {
"title": "Coin",
"type": "string"
},
"days": {
"default": 7,
"title": "Days",
"type": "integer"
}
},
"required": [
"coin"
],
"title": "analyze_peg_stabilityArguments",
"type": "object"
},
"name": "analyze_peg_stability"
}
]