Labsco
mseri logo

Web fetch and search MCP Server

โ˜… 8

from mseri

Provides web search, Wikipedia search, and web content fetching capabilities using OCaml.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Web fetch and search MCP Server

A Model Context Protocol (MCP) server that provides web search, Wikipedia search, and web content fetching capabilities, written in OCaml using the eio asynchronous runtime.

Features

  • DuckDuckGo Search: Search the web using DuckDuckGo's search engine
  • Wikipedia Search: Search Wikipedia for articles and content
  • Web Content Fetching: Fetch and parse content from web pages, with support for both cleaned-up HTML and Markdown formats
  • Rate Limiting: Built-in rate limiting to respect service limits
  • MCP Protocol: Fully compatible with the Model Context Protocol specification (vendoring https://tangled.sh/@anil.recoil.org/ocaml-mcp/)
  • Asynchronous: Built on Eio for efficient concurrent operations

Tools Provided

Search DuckDuckGo and return formatted results.

Parameters:

  • query (string, required): The search query string
  • max_results (integer, optional): Maximum number of results to return (default: 10)

Example:

{
  "query": "OCaml programming language",
  "max_results": 5
}

search_wikipedia

Search Wikipedia and return formatted results.

Parameters:

  • query (string, required): The search query string
  • max_results (integer, optional): Maximum number of results to return (default: 10)

Example:

{
  "query": "OCaml programming language",
  "max_results": 5
}

fetch_content

Fetch and parse content from a webpage URL.

Parameters:

  • url (string, required): The webpage URL to fetch content from
  • max_length (integer, optional): Maximum length (in bytes) of content to return (default: 8192). Set -1 to disable length limit.
  • start_from (integer, optional): Byte offset to start returning content from (default: 0)

Example:

{
  "url": "https://example.com/article",
  "max_length": 16384,
  "start_from": 1024
}

fetch_markdown

Fetch and parse content from a webpage URL as Markdown.

Parameters:

  • url (string, required): The webpage URL to fetch content from
  • max_length (integer, optional): Maximum length (in bytes) of content to return (default: 8192). Set -1 to disable length limit.
  • start_from (integer, optional): Byte offset to start returning content from (default: 0)

Example:

{
  "url": "https://example.com/article",
  "max_length": 16384,
  "start_from": 1024
}