Web search and content extraction tool,
Quick Start
Search the web
npx -y ducksearch search "搜索关键词"
npx -y ducksearch search "Claude AI" -n 5 # 限制结果数量
npx -y ducksearch search "Claude AI" -o # 自动打开第一个结果
Get webpage content
npx -y ducksearch fetch https://example.com
npx -y ducksearch fetch https://example.com --raw # 原始 HTML
npx -y ducksearch fetch https://example.com -o out.txt # 保存到文件
npx -y ducksearch fetch https://example.com --json # JSON 格式
MCP Server Configuration
Use ducksearch as an MCP server in Claude Code:
{
"mcpServers": {
"ducksearch": {
"command": "npx",
"args": ["-y", "ducksearch", "mcp"]
}
}
}
MCP Tools
- DuckDuckGoWebSearch: Search web content, returning titles, links, and summaries
- UrlContentExtractor: Extract plain text content from webpages
Global Installation (Optional)
npm install -g ducksearch
ducksearch search "关键词"
ducksearch fetch https://example.com