Valyu MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Searches arXiv's research papers repository through the Valyu knowledge API, allowing users to retrieve academic research content.

  • Provides Docker container deployment for the Valyu MCP server, allowing users to run the server in an isolated environment.

  • Enables querying Wikipedia content through the Valyu knowledge API, providing access to general knowledge information.

Valyu MCP 服务器

一个模型上下文协议服务器,提供对 Valyu 知识检索和反馈 API 的访问。该服务器使法学硕士 (LLM) 能够搜索专有资源和网络资源以获取信息,并提交交易反馈。

可用工具

  • knowledge - 搜索专有和/或网络来源以获取信息
    • 必需参数:
      • query (字符串):要搜索的问题或主题
      • search_type (字符串):要搜索的来源类型(“专有”、“网络”或“全部”)
      • max_price (数字):每千次查询允许的最高价格(CPM)
    • 可选参数:
      • data_sources (string[]): 要搜索的索引名称列表
      • max_num_results (整数):重新排序后返回的结果数
      • similarity_threshold (数字):包含结果的最低相似度得分
      • query_rewrite (布尔值):是否重写查询以获得更好的性能
  • feedback - 提交交易的用户反馈
    • 必需参数:
      • tx_id (字符串):提供反馈的交易 ID
      • feedback (字符串):用户反馈文本
      • sentiment (字符串):情绪评级(“非常好”,“好”,“坏”,“非常坏”)

安装

使用 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

配置

环境变量

  • VALYU_API_KEY (必需):您的 Valyu API 密钥

为 Claude.app 配置

添加到您的 Claude 设置:

"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>" } } }

交互示例

  1. 知识搜索:
{ "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. 提交反馈:
{ "name": "feedback", "arguments": { "tx_id": "12345abcdef", "feedback": "The information was very helpful and accurate.", "sentiment": "very good" } }

调试

您可以使用 MCP 检查器来调试服务器:

npx @modelcontextprotocol/inspector node dist/index.js

克劳德的问题示例

  1. “你能搜索有关医学人工智能的信息吗?”
  2. “我想了解可持续能源解决方案。你能搜索一下吗?”
  3. “请帮我提交 ID 为 TX123456 的交易反馈。”
  4. “帮我找到有关气候变化适应策略的最新研究。”

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

模型上下文协议服务器为 LLM 提供对 Valyu 知识检索和反馈 API 的访问权限,以便搜索专有/网络源并提交交易反馈。

  1. Available Tools
    1. Installation
      1. Using Docker
    2. Configuration
      1. Environment Variables
      2. Configure for Claude.app
    3. Example Interactions
      1. Debugging
        1. Examples of Questions for Claude
          ID: 3f1qkv3113