TXYZ Search MCP Server
A Model Context Protocol (MCP) server for TXYZ Search API. Provides tools for academic and scholarly search, general web search, and smart search(automatically selects the best search type based on the query), user should register a TXYZ API key from TXYZ Platform before usage.
Available Tools
txyz_search_scholar: Academic and scholarly search for papers, articles, and other academic materialstxyz_search_web: General web search functionality for resources from web pagestxyz_search_smart: Automatically selects the best search type based on the query (may include either scholarly materials or web pages)
Each tool accepts the following parameters:
query: The search querymax_results: The maximum number of results to return (between 1 and 20)
Prerequisites
- Python 3.10 or later (but less than 3.13)
- uv - Python package installer and resolver
- TXYZ API key from TXYZ Platform
Installation
Using uv (recommended)
- Install uv if you haven’t already:
curl -sSf https://astral.sh/uv/install.sh | bash
- Create and activate a virtual environment:
uv venv
source .venv/bin/activate
- Install the package:
# For development installation
uv pip install -e .
When using uv, you can also use uvx to directly run mcp-txyz-search without explicit installation.
Configuration
Environment Variables
- Copy the example environment file:
cp .env_example .env
- Edit the
.envfile and add your TXYZ API key:
# TXYZ Search Env Variables
TXYZ_API_KEY="YOUR_TXYZ_API_KEY_HERE"
TXYZ_BASE_URL="https://api.txyz.ai/v1"
You can get your API key from the TXYZ Platform Console.
MCP Configuration
Add the following to your MCP configuration:
{
"mcpServers": {
"mcp-txyz-search": {
"command": "uvx",
"args": [
"mcp-txyz-search"
],
"env": {
"TXYZ_API_KEY": "YOUR_TXYZ_API_KEY_HERE"
}
}
}
}
or Locally
{
"mcpServers": {
"mcp-txyz-search": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/txyz-search",
"mcp-txyz-search"
],
"env": {
"TXYZ_API_KEY": "YOUR_TXYZ_API_KEY_HERE"
}
}
}
}
or Fetch and run from remote repository
{
"mcpServers": {
"mcp-txyz-search": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/pathintegral-institute/mcp.science#subdirectory=servers/txyz-search",
"mcp-txyz-search"
],
"env": {
"TXYZ_API_KEY": "YOUR_TXYZ_API_KEY_HERE"
}
}
}
}
License
MIT