Cover image
Try Now
2025-03-05

Valyu网络API的MCP服务器的实现(https://docs.valyu.network/api-reference)

3 years

Works with Finder

1

Github Watches

2

Github Forks

0

Github Stars

Valyu MCP Server

A Model Context Protocol server that provides access to Valyu's knowledge retrieval and feedback APIs. This server enables LLMs to search proprietary and web sources for information and submit feedback on transactions.

Available Tools

  • knowledge - Search proprietary and/or web sources for information

    • Required arguments:
      • query (string): The question or topic to search for
      • search_type (string): Type of sources to search ("proprietary", "web", or "all")
      • max_price (number): Maximum allowed price per thousand queries (CPM)
    • Optional arguments:
      • data_sources (string[]): List of index names to search over
      • max_num_results (integer): Number of results returned after reranking
      • similarity_threshold (number): Minimum similarity score for included results
      • query_rewrite (boolean): Whether to rewrite the query for better performance
  • feedback - Submit user feedback for a transaction

    • Required arguments:
      • tx_id (string): Transaction ID to provide feedback for
      • feedback (string): User feedback text
      • sentiment (string): Sentiment rating ("very good", "good", "bad", "very bad")

Installation

Using Docker

docker pull ghcr.io/tiovikram/valyu-mcp-server
docker run -i --rm -e VALYU_API_KEY=your-api-key ghcr.io/tiovikram/valyu-mcp-server

Configuration

Environment Variables

  • VALYU_API_KEY (required): Your Valyu API key

Configure for Claude.app

Add to your Claude settings:

Using Docker
"mcpServers": {
  "valyu": {
    "command": "docker",
    "args": ["run", "--pull", "--rm", "-i", "-e", "VALYU_API_KEY", "ghcr.io/tiovikram/valyu-mcp-server"],
    "env": {
      "VALYU_API_KEY": "<your-valyu-api-key>"
    }
  }
}

Example Interactions

  1. Knowledge search:
{
  "name": "knowledge",
  "arguments": {
    "query": "What is quantum computing?",
    "search_type": "all",
    "max_price": 0.5,
    "data_sources": ["valyu/valyu-arxiv", "valyu/valyu-wikipedia"],
    "max_num_results": 5
  }
}
  1. Submit feedback:
{
  "name": "feedback",
  "arguments": {
    "tx_id": "12345abcdef",
    "feedback": "The information was very helpful and accurate.",
    "sentiment": "very good"
  }
}

Debugging

You can use the MCP inspector to debug the server:

npx @modelcontextprotocol/inspector node dist/index.js

Examples of Questions for Claude

  1. "Can you search for information about artificial intelligence in medicine?"
  2. "I'd like to learn about sustainable energy solutions. Can you search for that?"
  3. "Please help me submit feedback for my transaction with ID TX123456."
  4. "Find me the latest research on climate change adaptation strategies."

相关推荐

  • 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.

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

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

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

  • Khalid kalib
  • Write professional emails

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

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • 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

    4 (1)
    Avatar
    user_NkgxtqyM
    2025-04-18

    Valyu-mcp-js is a phenomenal tool for anyone working with MCP applications. The integration it offers through the Valyu Network is seamless and efficient. As a dedicated user, I appreciate the attention to detail in the design and functionality. The documentation is clear and the support from the Valyu Network team is outstanding. Highly recommend checking it out at https://github.com/valyu-network/valyu-mcp-js!