Skip to main content
Glama
misanthropic-ai

DuckDuckGo MCP Server

ddg-ai-chat

Interact with AI models like GPT, Llama, and Claude via DuckDuckGo to get answers, insights, or assistance by sending messages or questions directly within the MCP server.

Instructions

Chat with DuckDuckGo AI

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordsYesMessage or question to send to the AI
modelNoAI model to usegpt-4o-mini

Implementation Reference

  • Executes the 'ddg-ai-chat' tool: validates input, calls DuckDuckGo's DDGS.chat() with keywords and optional model, formats and returns the AI response as TextContent.
    elif name == "ddg-ai-chat": keywords = arguments.get("keywords") if not keywords: raise ValueError("Missing keywords") model = arguments.get("model", "gpt-4o-mini") # Perform AI chat ddgs = DDGS() result = ddgs.chat( keywords=keywords, model=model ) return [ types.TextContent( type="text", text=f"DuckDuckGo AI ({model}) response:\n\n{result}", ) ]
  • Registers the 'ddg-ai-chat' tool via @server.list_tools(), including its description and JSON inputSchema for 'keywords' (required string) and 'model' (optional enum).
    types.Tool( name="ddg-ai-chat", description="Chat with DuckDuckGo AI", inputSchema={ "type": "object", "properties": { "keywords": {"type": "string", "description": "Message or question to send to the AI"}, "model": {"type": "string", "enum": ["gpt-4o-mini", "llama-3.3-70b", "claude-3-haiku", "o3-mini", "mistral-small-3"], "description": "AI model to use", "default": "gpt-4o-mini"}, }, "required": ["keywords"], }, ),
  • Input schema for 'ddg-ai-chat' tool: object with required 'keywords' string and optional 'model' enum.
    inputSchema={ "type": "object", "properties": { "keywords": {"type": "string", "description": "Message or question to send to the AI"}, "model": {"type": "string", "enum": ["gpt-4o-mini", "llama-3.3-70b", "claude-3-haiku", "o3-mini", "mistral-small-3"], "description": "AI model to use", "default": "gpt-4o-mini"}, }, "required": ["keywords"], }, ),

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/misanthropic-ai/ddg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server