Skip to content

Commit 58dacb3

Browse files
committed
Add X and Reddit search
1 parent 024fb38 commit 58dacb3

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Model Context Protocol (MCP) server that provides search and crawl functionali
66

77
https://github.com/user-attachments/assets/58bc98ae-3b6b-442c-a7fc-010508b5f028
88

9-
More discussions, please join the official [discord](https://discord.com/invite/AKXYq32Bxc)
9+
More discussions and updates, please follow our official [X](https://x.com/search1api), or join the official [discord](https://discord.com/invite/AKXYq32Bxc)
1010

1111
## Features
1212

@@ -25,7 +25,7 @@ More discussions, please join the official [discord](https://discord.com/invite/
2525
- Parameters:
2626
* `query` (required): Search query in natural language. Be specific and concise for better results
2727
* `max_results` (optional, default: 10): Number of results to return
28-
* `search_service` (optional, default: "google"): Search service to use (google, bing, duckduckgo, yahoo, github, youtube, arxiv, wechat, bilibili, imdb, wikipedia)
28+
* `search_service` (optional, default: "google"): Search service to use (google, bing, duckduckgo, yahoo, x, reddit, github, youtube, arxiv, wechat, bilibili, imdb, wikipedia)
2929
* `crawl_results` (optional, default: 0): Number of results to crawl for full webpage content
3030
* `include_sites` (optional): List of sites to include in search
3131
* `exclude_sites` (optional): List of sites to exclude from search
@@ -92,6 +92,7 @@ More discussions, please join the official [discord](https://discord.com/invite/
9292

9393
## Version History
9494

95+
- v0.1.8: Added X(Twitter) and Reddit search services
9596
- v0.1.7: Added Trending tool for GitHub and Hacker News
9697
- v0.1.6: Added Wikipedia search service
9798
- v0.1.5: Added new search parameters (include_sites, exclude_sites, time_range) and new search services (arxiv, wechat, bilibili, imdb)

README_zh.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Search1API 官方 MCP 服务,一个 API 里实现搜索和爬虫。
66

77
https://github.com/user-attachments/assets/58bc98ae-3b6b-442c-a7fc-010508b5f028
88

9-
更多讨论,欢迎加入官方 [discord](https://discord.com/invite/AKXYq32Bxc) 频道
9+
更多讨论和更新,欢迎关注官方[推特](https://x.com/search1api),或者加入官方 [discord](https://discord.com/invite/AKXYq32Bxc) 频道
1010

1111
## 功能特点
1212

@@ -25,7 +25,7 @@ https://github.com/user-attachments/assets/58bc98ae-3b6b-442c-a7fc-010508b5f028
2525
- 参数:
2626
* `query`(必需):用自然语言描述的搜索查询。请具体且简洁以获得更好的结果
2727
* `max_results`(可选,默认值:10):返回结果的数量
28-
* `search_service`(可选,默认值:"google"):使用的搜索服务(google、bing、duckduckgo、yahoo、github、youtube、arxiv、wechat、bilibili、imdb、wikipedia)
28+
* `search_service`(可选,默认值:"google"):使用的搜索服务(google、bing、duckduckgo、yahoo、x、reddit、github、youtube、arxiv、wechat、bilibili、imdb、wikipedia)
2929
* `crawl_results`(可选,默认值:0):需要爬取完整网页内容的结果数量
3030
* `include_sites`(可选):搜索结果中要包含的网站列表
3131
* `exclude_sites`(可选):搜索结果中要排除的网站列表
@@ -92,6 +92,7 @@ https://github.com/user-attachments/assets/58bc98ae-3b6b-442c-a7fc-010508b5f028
9292

9393
## 版本历史
9494

95+
- v0.1.8:新增对 X(Twitter)、Reddit 搜索服务支持
9596
- v0.1.7:添加热榜工具,目前支持 GitHub 和 Hacker News 榜单
9697
- v0.1.6:添加 Wikipedia 搜索服务
9798
- v0.1.5:添加了新的搜索参数(include_sites、exclude_sites、time_range)和新的搜索服务(arxiv、wechat、bilibili、imdb)

src/tools/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const SEARCH_TOOL: Tool = {
2020
type: "string",
2121
description: "Specify the search engine to use. Choose based on your specific needs",
2222
default: "google",
23-
enum: ["google", "bing", "duckduckgo", "yahoo", "github", "youtube", "arxiv", "wechat", "bilibili", "imdb", "wikipedia"]
23+
enum: ["google", "bing", "duckduckgo", "yahoo", "x", "reddit", "github", "youtube", "arxiv", "wechat", "bilibili", "imdb", "wikipedia"]
2424
},
2525
crawl_results: {
2626
type: "number",

src/types.ts

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export enum SearchService {
2222
YAHOO = "yahoo",
2323
GITHUB = "github",
2424
YOUTUBE = "youtube",
25+
X = "x",
26+
REDDIT = "reddit",
2527
ARXIV = "arxiv",
2628
WECHAT = "wechat",
2729
BILIBILI = "bilibili",

0 commit comments

Comments
 (0)