Cover image
Try Now
2025-04-04

Valyu MCP服务器是一种模型上下文协议(MCP)工具,它使AI模型能够从Valyu的API中检索高质量的上下文,包括Wikipedia,Arxiv,Arxiv(非常适合金融,研究等)和Web搜索的完整搜索功能。

3 years

Works with Finder

1

Github Watches

2

Github Forks

0

Github Stars

Valyu MCP Server

The Valyu MCP Server is a Model Context Protocol (MCP) tool that enables AI models to retrieve high-quality context from Valyu's API, including full search capabilities over Wikipedia, arXiv papers (great for finance, research, etc.), and web search.

Prerequisites

Before setting up the MCP server, ensure you have the following:

  1. Python 3.10+
  2. Claude Desktop (latest version)
  3. Valyu API Key (Get one from Valyu Exchange)

To check your Python version, run:

python --version

Installation & Configuration

Option 1: Automated Setup (Recommended)

  1. Clone the repository
git clone https://github.com/ValyuNetwork/valyu-mcp.git
cd valyu-mcp
  1. Run the setup script
chmod +x setup.sh  
./setup.sh       

The setup script will:

  • Create and activate a virtual environment
  • Install all dependencies
  • Prompt you for your Valyu API key
  • Create the necessary .env file
  • Provide instructions for updating your Claude Desktop configuration

Option 2: Manual Setup

If you prefer to set up manually or the automated setup doesn't work for your environment, follow these steps:

  1. Clone the repository
git clone https://github.com/ValyuNetwork/valyu-mcp.git
cd valyu-mcp
  1. Create a virtual environment and activate it
python -m venv .venv
source .venv/bin/activate  # macOS/Linux
.venv\Scripts\activate    # Windows
  1. Install dependencies
pip install -r requirements.txt
  1. Create a .env file in the project root:
echo "VALYU_API_KEY=your-api-key-here" > .env
  1. Open your Claude Desktop config file for editing:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json

    If the config file doesn't exist:

    1. Open Claude Desktop
    2. Go to Settings
    3. Enable Developer Mode in the Developer tab
    4. The config file will be generated automatically

    You can open this file in VS Code using:

    code ~/Library/Application\ Support/Claude/claude_desktop_config.json  # macOS
    code %APPDATA%\Claude\claude_desktop_config.json  # Windows (PowerShell)
    
  2. Add the following entry under mcpServers:

{
  "mcpServers": {
    "valyu-mcp": {
      "command": "/ABSOLUTE/PATH/TO/.venv/bin/python",
      "args": ["-u", "/ABSOLUTE/PATH/TO/valyu-mcp.py"],
      "env": {
        "VALYU_API_KEY": "your-api-key-here"
      }
    }
  }
}

Running the MCP Server

  1. Start the server manually (for testing):
python valyu-mcp.py
  1. Start Claude Desktop and verify the MCP tool is recognized:
    • Look for the valyu-mcp tool in the Claude interface.
    • Test a query in Claude (e.g., "What are the latest papers on reinforcement learning?").

Testing and Debugging

Check logs if you encounter issues:

tail -n 20 -F ~/Library/Logs/Claude/mcp*.log  # macOS
Get-Content $env:APPDATA\Claude\Logs\mcp_valyu-mcp.log -Wait  # Windows

Troubleshooting

  • ModuleNotFoundError: Ensure your virtual environment is activated before running the script.
  • Server doesn't start: Check paths in claude_desktop_config.json.
  • No results from Valyu API: Verify your API key is valid and has credits.

Free Credits & API Access

Sign up at Valyu Exchange and claim your $10 free credits to test Valyu API with the MCP server.

Contributing

Pull requests are welcome! Feel free to open an issue for bug reports or feature requests.

License

This project is licensed under the MIT License.


For more information about what we are building at Valyu, visit valyu.network. And check out our blogs at valyu.network/blog.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    3 (1)
    Avatar
    user_MrAKxqDf
    2025-04-16

    @microsoft/playwright Mcp is an outstanding tool provided by Microsoft! It offers seamless functionality for automated testing and cross-browser interoperability. The reliability and performance have significantly improved our development workflow. Highly recommend it to any developer looking for a robust testing solution. Check it out at https://mcp.so/server/@microsoft/playwright-mcp/microsoft.