Token导航 LogoToken导航TokenDH.com
Uniswap V3 Subgraph MCP Server logo
金融服务stdio官方级别未说明来源级核验

Uniswap V3 Subgraph MCP Server

MCP Server

一个基于MCP协议的服务器,提供对Uniswap V3 Subgraph API的访问,使AI代理和LLM能够通过标准化工具与Uniswap V3 Subgraph交互。

工具数

2

提示词数

0

GitHub Stars

0

资源数

0
区块链Python数据分析智能合约

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Traia-IO

提供方

Traia-IO

最后核验

2026/5/17 20:22

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run python -m server

详细介绍

Uniswap V3 Subgraph MCP Server

This is an MCP (Model Context Protocol) server that provides access to the Uniswap V3 Subgraph API. It enables AI agents and LLMs to interact with Uniswap V3 Subgraph through standardized tools.

Features

  • 🔧 MCP Protocol: Built on the Model Context Protocol for seamless AI integration
  • 🌐 Full API Access: Provides tools for interacting with Uniswap V3 Subgraph endpoints
  • 🐳 Docker Support: Easy deployment with Docker and Docker Compose
  • Async Operations: Built with FastMCP for efficient async handling

API Documentation

Available Tools

This server provides the following tools:

  • example_tool: Placeholder tool (to be implemented)
  • get_api_info: Get information about the API service and authentication status

*Note: Replace example_tool with actual Uniswap V3 Subgraph API tools based on the documentation.*

Installation

Using Docker (Recommended)

  1. Clone this repository:
   git clone https://github.com/Traia-IO/uniswap-v3-subgraph-mcp-server.git
   cd uniswap-v3-subgraph-mcp-server
  1. Run with Docker:
   ./run_local_docker.sh

Using Docker Compose

  1. Create a .env file with your configuration:
PORT=8000
  1. Start the server:
   docker-compose up

Manual Installation

  1. Install dependencies using uv:
   uv pip install -e .
  1. Run the server:
uv run python -m server

Usage

Health Check

Test if the server is running:

python mcp_health_check.py

Using with CrewAI

from traia_iatp.mcp.traia_mcp_adapter import create_mcp_adapter

# Connect to the MCP server
with create_mcp_adapter(
    url="http://localhost:8000/mcp/"
) as tools:
    # Use the tools
    for tool in tools:
        print(f"Available tool: {tool.name}")
        
    # Example usage
    result = await tool.example_tool(query="test")
    print(result)

Development

Testing the Server

  1. Start the server locally
  2. Run the health check: python mcp_health_check.py
  3. Test individual tools using the CrewAI adapter

Adding New Tools

To add new tools, edit server.py and:

  1. Create API client functions for Uniswap V3 Subgraph endpoints
  2. Add @mcp.tool() decorated functions
  3. Update this README with the new tools
  4. Update deployment_params.json with the tool names in the capabilities array

Deployment

Deployment Configuration

The deployment_params.json file contains the deployment configuration for this MCP server:

{
  "github_url": "https://github.com/Traia-IO/uniswap-v3-subgraph-mcp-server",
  "mcp_server": {
    "name": "uniswap-v3-subgraph-mcp",
    "description": "Decentralized exchange protocol api providing on-chain trading data for ethereum's largest dex. query liquidity pools, token swaps, and concentrated liquidity positions across 3,000+ trading pairs with $4b+ tvl. access real-time pool reserves, token prices derived from pool ratios, 24hr volume statistics, and fee tier distributions (0.01%, 0.05%, 0.3%, 1%). track individual positions with range orders, liquidity provision history, earned fees, and impermanent loss calculations. historical swap data includes transaction hashes, block numbers, timestamps, input/output amounts, and price impact for every trade. monitor pool creation events, liquidity adds/removes, and flash loan activity. advanced queries support tick-level granularity for concentrated liquidity ranges, time-series aggregations for volume/tvl tracking, and multi-hop route discovery for optimal swap paths. factory contract data provides protocol-wide statistics: total volume, total tvl, unique traders count, and transaction counts. token analytics include price history, volume rankings, holder distributions, and cross-pool arbitrage opportunities. essential for mev bot development, arbitrage detection, liquidity mining optimization, impermanent loss analysis, and automated market maker strategies. graphql interface supports complex queries with filtering, sorting, and pagination. rate limits: 1,000 queries/day for free tier.",
    "server_type": "streamable-http",
"capabilities": [
      // List all implemented tool names here
      "example_tool",
      "get_api_info"
    ]
  },
  "deployment_method": "cloud_run",
  "gcp_project_id": "traia-mcp-servers",
  "gcp_region": "us-central1",
  "tags": ["uniswap v3 subgraph", "api"],
  "ref": "main"
}

Important: Always update the capabilities array when you add or remove tools!

Google Cloud Run

This server is designed to be deployed on Google Cloud Run. The deployment will:

  1. Build a container from the Dockerfile
  2. Deploy to Cloud Run with the specified configuration
  3. Expose the /mcp endpoint for client connections

Environment Variables

  • PORT: Server port (default: 8000)
  • STAGE: Environment stage (default: MAINNET, options: MAINNET, TESTNET)
  • LOG_LEVEL: Logging level (default: INFO)

Troubleshooting

  1. Server not starting: Check Docker logs with docker logs
  2. Connection errors: Ensure the server is running on the expected port3. Tool errors: Check the server logs for detailed error messages

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Implement new tools or improvements
  4. Update the README and deployment_params.json
  5. Submit a pull request

License

MIT License

目录标签

目录标签

区块链Python数据分析智能合约本地部署API服务去中心化交易

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP