MCP HubMCP Hub
Sunwood-ai-labs

duckduckgo-web-search

by: Sunwood-ai-labs

DuckDuckGo Web Search MCP Server - A simple web search implementation for Claude Desktop using DuckDuckGo API

9created 01/12/2024
Visit
search
API

📌Overview

Purpose: The duckduckgo-web-search MCP server aims to implement a simple notes system, showcasing key MCP concepts through resource management and note manipulation.

Overview: This TypeScript-based MCP server facilitates the creation, management, and summarization of text notes, allowing for efficient organization and retrieval of information through a URI-based resource model.

Key Features:

  • Resources: Provides access to notes via note:// URIs, with each note containing a title, content, and metadata, allowing for straightforward text storage and retrieval.

  • Tools: Includes the create_note functionality for generating new notes by specifying required parameters such as title and content, which are then stored in the server's state.

  • Prompts: Offers the summarize_notes feature, which generates a structured summary of all stored notes, utilizing their embedded contents for enhanced context in LLM summarization.


duckduckgo-web-search MCP Server

This is a TypeScript-based MCP server implementing a simple notes system. It demonstrates core MCP concepts by providing:

  • Resources representing text notes with URIs and metadata
  • Tools for creating new notes
  • Prompts for generating summaries of notes

Features

Resources

  • List and access notes via note:// URIs
  • Each note has a title, content, and metadata
  • Plain text mime type for simple content access

Tools

  • create_note - Create new text notes
    • Takes title and content as required parameters
    • Stores note in server state

Prompts

  • summarize_notes - Generate a summary of all stored notes
    • Includes all note contents as embedded resources
    • Returns structured prompt for LLM summarization

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

  • On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json

Example configuration:

{
  "mcpServers": {
    "duckduckgo-web-search": {
      "command": "/path/to/duckduckgo-web-search/build/index.js"
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. It is recommended to use the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.