### Install DuckDuckGo MCP Server Dependencies Source: https://github.com/zhsama/duckduckgo-mcp-server/blob/main/README.md Provides commands to set up the development environment. First, it installs `pnpm` globally if not present. Then, it installs all necessary project dependencies using `pnpm install`. ```bash # Install pnpm if not already installed npm install -g pnpm # Install project dependencies pnpm install ``` -------------------------------- ### Build and Run DuckDuckGo MCP Server Source: https://github.com/zhsama/duckduckgo-mcp-server/blob/main/README.md Instructions for compiling and running the server. Use `pnpm run build` for a production build. For development, `pnpm run watch` enables auto-rebuild on file changes. ```bash pnpm run build ``` ```bash pnpm run watch ``` -------------------------------- ### Configure Claude Desktop for Online DuckDuckGo MCP Server Source: https://github.com/zhsama/duckduckgo-mcp-server/blob/main/README.md JSON snippet for configuring Claude Desktop to use the online version of the DuckDuckGo MCP server. It specifies `npx` as the command to execute the server directly from a package. ```json { "mcpServers": { "duckduckgo-search": { "command": "npx", "args": [ "-y", "duckduckgo-mcp-server" ] } } } ``` -------------------------------- ### Configure Claude Desktop for Local DuckDuckGo MCP Server Source: https://github.com/zhsama/duckduckgo-mcp-server/blob/main/README.md JSON snippet for configuring Claude Desktop to use a locally built DuckDuckGo MCP server. It provides the `node` command and the direct file path to the server's `index.js`. ```json { "mcpServers": { "duckduckgo-search": { "command": "node", "args": [ "/path/to/duckduckgo-search/build/index.js" ] } } } ``` -------------------------------- ### Debug DuckDuckGo MCP Server with Inspector Source: https://github.com/zhsama/duckduckgo-mcp-server/blob/main/README.md Command to launch the MCP Inspector, a recommended tool for debugging MCP servers. It provides a URL to access browser-based debugging tools, simplifying stdio communication challenges. ```bash pnpm run inspector ``` -------------------------------- ### DuckDuckGo Search Tool API Reference Source: https://github.com/zhsama/duckduckgo-mcp-server/blob/main/README.md Documents the `duckduckgo_search` tool for web searches. It outlines required `query` and optional `count`, `safeSearch` parameters with their types and constraints. The tool returns formatted Markdown search results. ```APIDOC duckduckgo_search: description: Perform web searches using DuckDuckGo API parameters: query: type: string required: true description: Search query (max 400 characters) count: type: integer required: false description: Number of results (1-20, default 10) safeSearch: type: string required: false description: Safety level (strict/moderate/off, default moderate) returns: formatted Markdown search results ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.