Navigation
Valyu MCP Server: Robust MCP Protocol, Scalable Decentralized Apps - MCP Implementation

Valyu MCP Server: Robust MCP Protocol, Scalable Decentralized Apps

Valyu MCP Server: Robust TypeScript implementation of the MCP protocol for Valyu Network API, enabling seamless, scalable decentralized app development.

Research And Data
4.4(124 reviews)
186 saves
86 comments

67% of users reported increased productivity after just one week

About Valyu MCP Server

What is Valyu MCP Server: Robust MCP Protocol, Scalable Decentralized Apps?

Valyu MCP Server is a specialized Model Context Protocol (MCP) server designed to empower Large Language Models (LLMs) with advanced knowledge retrieval and feedback capabilities. It bridges the gap between LLMs and proprietary/web data sources, enabling seamless access to structured information while maintaining cost control and accuracy. The server allows developers to integrate dynamic search queries, real-time feedback loops, and configurable parameters to optimize performance for diverse applications.

How to Use Valyu MCP Server: Installation & Configuration

Getting started is straightforward. First, deploy the server using Docker with a single command: docker run -d -p 8080:80 valyu/mcp-server. Next, configure the environment variables to specify API keys and data source preferences. For users of the Claude platform, additional setup involves updating the model’s context configuration to reference the server’s endpoints. Detailed guides and troubleshooting steps are available in the official documentation.

Valyu MCP Server Features

Key Features: Flexibility and Precision

  • Multi-Source Search**: Query both proprietary databases and public web sources with adjustable priority settings.
  • Cost Management**: Set spend thresholds and price-per-token limits to avoid unexpected charges.
  • Dynamic Parameters**: Fine-tune results with filters like result count, similarity thresholds, and query rewriting rules.
  • Feedback Loop**: Submit structured feedback on search quality or response accuracy to improve future interactions.

Use Cases: Real-World Applications

Valyu MCP Server FAQ

FAQ: Common Questions Answered

Q: How do I handle API rate limits?
A: Use the built-in throttling feature to cap requests per second, and configure fallback sources to avoid downtime during spikes.

Q: Can I test the server locally?
A: Yes, run the Docker container in test mode with mock data endpoints for development environments. Toggle the ENABLE_MOCK environment flag to simulate API responses without incurring costs.

Q: What security measures are in place?
A: All data transfers are encrypted via TLS, and sensitive credentials are stored in vaults. Role-based access control ensures only authorized teams can modify critical configurations.

Content

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

Related MCP Servers & Clients