search1api-mcp 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -40
- package/build/index.js +2 -2
- package/build/types.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
# Search1API MCP Server
|
|
2
2
|
|
|
3
|
+
[中文文档](./README_zh.md)
|
|
4
|
+
|
|
3
5
|
A Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.
|
|
4
6
|
|
|
5
7
|
https://github.com/user-attachments/assets/58bc98ae-3b6b-442c-a7fc-010508b5f028
|
|
6
8
|
|
|
9
|
+
More discussions, please join the official [discord](https://discord.com/invite/AKXYq32Bxc)
|
|
7
10
|
|
|
8
11
|
## Features
|
|
9
12
|
|
|
@@ -12,7 +15,7 @@ https://github.com/user-attachments/assets/58bc98ae-3b6b-442c-a7fc-010508b5f028
|
|
|
12
15
|
- Web page content extraction
|
|
13
16
|
- Website sitemap extraction
|
|
14
17
|
- Deep thinking and complex problem solving with DeepSeek R1
|
|
15
|
-
- Seamless integration with Claude Desktop, Cursor and
|
|
18
|
+
- Seamless integration with Claude Desktop, Cursor, Windsurf, Cline and other MCP clients
|
|
16
19
|
|
|
17
20
|
## Tools
|
|
18
21
|
|
|
@@ -22,7 +25,7 @@ https://github.com/user-attachments/assets/58bc98ae-3b6b-442c-a7fc-010508b5f028
|
|
|
22
25
|
- Parameters:
|
|
23
26
|
* `query` (required): Search query in natural language. Be specific and concise for better results
|
|
24
27
|
* `max_results` (optional, default: 10): Number of results to return
|
|
25
|
-
* `search_service` (optional, default: "google"): Search service to use (google, bing, duckduckgo, yahoo, github, youtube, arxiv, wechat, bilibili, imdb)
|
|
28
|
+
* `search_service` (optional, default: "google"): Search service to use (google, bing, duckduckgo, yahoo, github, youtube, arxiv, wechat, bilibili, imdb, wikipedia)
|
|
26
29
|
* `crawl_results` (optional, default: 0): Number of results to crawl for full webpage content
|
|
27
30
|
* `include_sites` (optional): List of sites to include in search
|
|
28
31
|
* `exclude_sites` (optional): List of sites to exclude from search
|
|
@@ -65,8 +68,6 @@ https://github.com/user-attachments/assets/58bc98ae-3b6b-442c-a7fc-010508b5f028
|
|
|
65
68
|
2. Get your api key and 100 free credits
|
|
66
69
|
|
|
67
70
|
### 2. Configure
|
|
68
|
-
#### 2.1 Claude Desktop
|
|
69
|
-
Update your Claude configuration file (`claude_desktop_config.json`) with the following content:
|
|
70
71
|
|
|
71
72
|
```json
|
|
72
73
|
{
|
|
@@ -82,44 +83,9 @@ Update your Claude configuration file (`claude_desktop_config.json`) with the fo
|
|
|
82
83
|
}
|
|
83
84
|
```
|
|
84
85
|
|
|
85
|
-
Configuration file location:
|
|
86
|
-
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
87
|
-
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
88
|
-
|
|
89
|
-
#### 2.2 Cursor
|
|
90
|
-
Easy way:
|
|
91
|
-
1. Open Cursor Settings to add new MCP server `search1api` with the command `env SEARCH1API_KEY=your-search1api-key npx -y search1api-mcp`
|
|
92
|
-
2. Add your own Search1API key to the command
|
|
93
|
-
|
|
94
|
-
Safe way:
|
|
95
|
-
1. Copy the run.template.sh to your file path and rename it to run.sh
|
|
96
|
-
2. Add your own Search1API key to the run.sh file
|
|
97
|
-
3. Open Cursor Settings to add new MCP server `search1api` with the command `sh ./your_file_path/run.sh`
|
|
98
|
-
|
|
99
|
-
Read the Cursor MCP Server [Official Documentation](https://docs.cursor.com/context/model-context-protocol#adding-an-mcp-server-to-cursor) to get more information.
|
|
100
|
-
|
|
101
|
-
#### 2.3 Windsurf
|
|
102
|
-
Update your Windsurf configuration file (`mcp_config.json`) with the following content:
|
|
103
|
-
|
|
104
|
-
```json
|
|
105
|
-
{
|
|
106
|
-
"mcpServers": {
|
|
107
|
-
"search1api": {
|
|
108
|
-
"command": "npx",
|
|
109
|
-
"args": ["-y", "search1api-mcp"],
|
|
110
|
-
"env": {
|
|
111
|
-
"SEARCH1API_KEY": "YOUR_SEARCH1API_KEY"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
```
|
|
117
|
-
Read the Windsurf MCP Server [Official Documentation](https://docs.codeium.com/windsurf/mcp) to get more information.
|
|
118
|
-
|
|
119
|
-
**Notice: After the configuration is done, you can close Windsurf offcial web tools to save your credits**
|
|
120
|
-
|
|
121
86
|
## Version History
|
|
122
87
|
|
|
88
|
+
- v0.1.6: Added Wikipedia search service
|
|
123
89
|
- v0.1.5: Added new search parameters (include_sites, exclude_sites, time_range) and new search services (arxiv, wechat, bilibili, imdb)
|
|
124
90
|
- v0.1.4: Added reasoning tool with deepseek r1 and updated the Cursor and Windsurf configuration guide
|
|
125
91
|
- v0.1.3: Added news search functionality
|
package/build/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const SEARCH_TOOL = {
|
|
|
39
39
|
type: "string",
|
|
40
40
|
description: "Specify the search engine to use. Choose based on your specific needs",
|
|
41
41
|
default: "google",
|
|
42
|
-
enum: ["google", "bing", "duckduckgo", "yahoo", "github", "youtube", "arxiv", "wechat", "bilibili", "imdb"]
|
|
42
|
+
enum: ["google", "bing", "duckduckgo", "yahoo", "github", "youtube", "arxiv", "wechat", "bilibili", "imdb", "wikipedia"]
|
|
43
43
|
},
|
|
44
44
|
crawl_results: {
|
|
45
45
|
type: "number",
|
|
@@ -167,7 +167,7 @@ const REASONING_TOOL = {
|
|
|
167
167
|
// Server implementation
|
|
168
168
|
const server = new Server({
|
|
169
169
|
name: "search1api-mcp",
|
|
170
|
-
version: "0.1.
|
|
170
|
+
version: "0.1.6",
|
|
171
171
|
}, {
|
|
172
172
|
capabilities: {
|
|
173
173
|
resources: {
|
package/build/types.js
CHANGED
|
@@ -10,6 +10,7 @@ export var SearchService;
|
|
|
10
10
|
SearchService["WECHAT"] = "wechat";
|
|
11
11
|
SearchService["BILIBILI"] = "bilibili";
|
|
12
12
|
SearchService["IMDB"] = "imdb";
|
|
13
|
+
SearchService["WIKIPEDIA"] = "wikipedia";
|
|
13
14
|
})(SearchService || (SearchService = {}));
|
|
14
15
|
export var NewsService;
|
|
15
16
|
(function (NewsService) {
|