Skip to main content
Glama

ddgs_lmstudio_mcp

为 LM Studio 提供 DuckDuckGo 搜索,让 Claude Code 使用本地模型时能够调用原生 WebSearch,沿用现有服务地址和凭据。

安装

环境:Linux(用户级 systemd)、Node.js 22.12+、LM Studio 桌面版。先启动 LM Studio 并开启本地 API 服务,再执行:

npm install -g github:hjd-hitsz/ddgs_lmstudio_mcp
ddgs-lmstudio-mcp install

安装后随 LM Studio 自动启动和停止。升级时重新执行以上命令。

Related MCP server: Tagny MCP Server

代理

默认使用 http://127.0.0.1:7897。唯一配置项为代理端口,0 表示关闭代理、直接联网。

# 修改代理端口
ddgs-lmstudio-mcp install --proxy-port 7890

# 关闭代理
ddgs-lmstudio-mcp install --proxy-port 0

使用

在 Claude Code 中选择 LM Studio 的本地模型,正常发起需要联网搜索的任务即可。

查看服务状态和日志:

ddgs-lmstudio-mcp status
journalctl --user -u ddgs-search-gateway.service

其他 MCP 客户端可通过 ddgs-lmstudio-mcp mcp 连接,使用网页搜索 web_search 和新闻搜索 news_search。

卸载

systemctl --user disable --now ddgs-search-gateway.path
systemctl --user stop ddgs-search-gateway.service
npm uninstall -g ddgs_lmstudio_mcp

开发

实现、兼容性与验证说明见开发文档。

许可证

MIT

Available Tools

2 tools

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updatesv0.1.0
    • First observednews_search
    • First observedweb_search

TDQS

A3.9/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct purposes: general web search vs. recent news search. The news-specific extra fields (date, source) and recency focus make the boundary obvious.

Naming Consistency5/5

Both tool names follow the same consistent snake_case noun_search pattern: web_search and news_search. There is no mixing of conventions or verb styles.

Tool Count5/5

Two tools are well-scoped for a focused search server covering general web and news search. Each tool earns its place without unnecessary surface area.

Completeness4/5

The core search lifecycle is covered: general web lookup and recent news lookup. Minor gaps exist, such as optional filters or pagination, but agents can work around them.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables web browsing capabilities for locally served LLMs through URL text fetching, link extraction, and web search using Brave and DuckDuckGo engines. Designed to enhance LLMs with real-time web access through the MCP protocol.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables web search via DuckDuckGo and web content fetching through the Model Context Protocol, allowing AI assistants to search and retrieve web page content.
    10 npm
    MIT