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.
Before setting up the MCP server, ensure you have the following:
To check your Python version, run:
python --version
git clone https://github.com/ValyuNetwork/valyu-mcp.git
cd valyu-mcp
chmod +x setup.sh
./setup.sh
The setup script will:
If you prefer to set up manually or the automated setup doesn't work for your environment, follow these steps:
git clone https://github.com/ValyuNetwork/valyu-mcp.git
cd valyu-mcp
python -m venv .venv
source .venv/bin/activate # macOS/Linux
.venv\Scripts\activate # Windows
pip install -r requirements.txt
.env
file in the project root:echo "VALYU_API_KEY=your-api-key-here" > .env
Open your Claude Desktop config file for editing:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
If the config file doesn't exist:
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)
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"
}
}
}
}
python valyu-mcp.py
valyu-mcp
tool in the Claude interface.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
ModuleNotFoundError
: Ensure your virtual environment is activated before running the script.claude_desktop_config.json
.Sign up at Valyu Exchange and claim your $10 free credits to test Valyu API with the MCP server.
Pull requests are welcome! Feel free to open an issue for bug reports or feature requests.
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.
Seamless access to top MCP servers powering the future of AI integration.