valyu-mcp
Enables AI models to retrieve high-quality context from Valyu's API, including search over Wikipedia, arXiv papers, and the web.
README
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:
- Python 3.10+
- Claude Desktop (latest version)
- Valyu API Key (Get one from Valyu Exchange)
To check your Python version, run:
python --version
Installation & Configuration
Option 1: Automated Setup (Recommended)
- Clone the repository
git clone https://github.com/ValyuNetwork/valyu-mcp.git
cd valyu-mcp
- 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:
- Clone the repository
git clone https://github.com/ValyuNetwork/valyu-mcp.git
cd valyu-mcp
- Create a virtual environment and activate it
python -m venv .venv
source .venv/bin/activate # macOS/Linux
.venv\Scripts\activate # Windows
- Install dependencies
pip install -r requirements.txt
- Create a
.envfile in the project root:
echo "VALYU_API_KEY=your-api-key-here" > .env
-
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:
- Open Claude Desktop
- Go to Settings
- Enable Developer Mode in the Developer tab
- 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) - macOS:
-
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
- Start the server manually (for testing):
python valyu-mcp.py
- Start Claude Desktop and verify the MCP tool is recognized:
- Look for the
valyu-mcptool in the Claude interface. - Test a query in Claude (e.g., "What are the latest papers on reinforcement learning?").
- Look for the
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.