Search1API MCP Server is a tool that provides search and web crawling functionality through the Model Context Protocol. It allows AI assistants to access real-time web information, news, perform content extraction, and more using Search1API services.
Clone the repository:
git clone https://github.com/fatwang2/search1api-mcp.git
cd search1api-mcp
Configure API Key: You'll need to set up your Search1API key before building the server (see Setup Guide below).
Install dependencies and build:
npm install
npm run build
Choose one of these methods to provide your API key:
.env
file in the project root:
echo "SEARCH1API_KEY=your_api_key_here" > .env
your_api_key_here
with your actual keySet the environment variable before starting the server:
export SEARCH1API_KEY="your_api_key_here"
npm start
Some MCP clients allow specifying environment variables in their configuration:
{
"mcpServers": {
"search1api": {
"command": "npx",
"args": [
"-y",
"search1api-mcp"
],
"env": {
"SEARCH1API_KEY": "YOUR_SEARCH1API_KEY"
}
}
}
}
Once configured, start the server:
npm start
The server will be ready to accept connections from MCP clients.
Clone the repository next to your LibreChat setup:
cd /path/to/your/librechat/setup/mcp-server
git clone https://github.com/fatwang2/search1api-mcp.git
Configure your API key (required for LibreChat):
cd search1api-mcp
echo "SEARCH1API_KEY=your_api_key_here" > .env
Build the server:
npm install
npm run build
Configure librechat.yaml
by adding:
mcp_servers:
search1api:
command: node
args:
- /app/mcp-server/search1api-mcp/build/index.js
Update Docker volume bindings in your docker-compose.yml
or docker-compose.override.yml
:
services:
api:
volumes:
- ./mcp-server/search1api-mcp:/app/mcp-server/search1api-mcp
Restart LibreChat:
docker compose down && docker compose up -d --build
Performs web searches using multiple search engines.
{
"name": "search",
"parameters": {
"query": "latest AI research papers 2023",
"max_results": 5,
"search_service": "google",
"crawl_results": 2,
"include_sites": "arxiv.org,nature.com",
"exclude_sites": "wikipedia.org",
"time_range": "month"
}
}
Searches for news articles from various sources.
{
"name": "news",
"parameters": {
"query": "renewable energy breakthroughs",
"max_results": 5,
"search_service": "bing",
"time_range": "month"
}
}
Extracts content from a specific URL.
{
"name": "crawl",
"parameters": {
"url": "https://example.com/article"
}
}
Retrieves all related links from a URL.
{
"name": "sitemap",
"parameters": {
"url": "https://example.com"
}
}
Uses DeepSeek R1 model for deep thinking and complex problem solving.
{
"name": "reasoning",
"parameters": {
"content": "What are the ethical implications of large language models?"
}
}
Gets trending topics from popular platforms.
{
"name": "trending",
"parameters": {
"search_service": "github",
"max_results": 5
}
}
The Search1API MCP server supports multiple search services including:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "search1api" '{"command":"npx","args":["-y","search1api-mcp"],"env":{"SEARCH1API_KEY":"YOUR_SEARCH1API_KEY"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"search1api": {
"command": "npx",
"args": [
"-y",
"search1api-mcp"
],
"env": {
"SEARCH1API_KEY": "YOUR_SEARCH1API_KEY"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"search1api": {
"command": "npx",
"args": [
"-y",
"search1api-mcp"
],
"env": {
"SEARCH1API_KEY": "YOUR_SEARCH1API_KEY"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect