microsoft

Bing Search MCP Server

Community microsoft
Updated

Searches the web and reads links

Bing Search MCP Server

Searches the web and reads links

This is a Model Context Protocol (MCP) server project.

Tools

search(query: str) -> str

  • Calls the Bing Search API with the provided query.
  • Processes each URL from the search results:
    • Gets the content of the page
    • Converts it to Markdown using Markitdown
    • Parses out links separately. Caches a unique hash to associate with each link.
    • (Optional, on by default) Uses sampling to select the most important links to return.
    • (Optional, on by default) Filters out the Markdown content to the most important parts.
  • Returns the processed content and links as a LLM-friendly string.

click(hashes: list[str]) -> str

  • Takes a list of hashes (which originate from the search tool).
  • For each hash gets the corresponding URL from the local cache.
  • Then does the same processing as search for each URL and returns a similar LLM-friendly string.

Setup and Installation

Simply run:

make

To create the virtual environment and install dependencies.

Setup Environment Variables

Create a .env file based on .env.sample and populate it with:

  • BING_SEARCH_API_KEY
  • ASSISTANT__AZURE_OPENAI_ENDPOINT - This is necessary if you want to post process web content.

Running the Server

Use the VSCode launch configuration, or run manually:

Defaults to stdio transport:

uv run mcp-server-bing-search

For SSE transport:

uv run mcp-server-bing-search --transport sse --port 6030

The SSE URL is:

http://127.0.0.1:6030/sse

Client Configuration

To use this MCP server in your setup, consider the following configuration:

Stdio

{
  "mcpServers": {
    "mcp-server-bing-search": {
      "command": "uv",
      "args": ["run", "-m", "mcp_server_bing_search.start"]
    }
  }
}

SSE

{
  "mcpServers": {
    "mcp-server-bing-search": {
      "command": "http://127.0.0.1:6030/sse",
      "args": []
    }
  }
}

MCP Server · Populars

MCP Server · New

    googleads

    Google Ads MCP Server

    MCP Server

    Community googleads
    StefanMaron

    AL MCP Server

    MCP Server

    Community StefanMaron
    vintasoftware

    Django AI Boost

    A MCP server for Django applications, inspired by Laravel Boost.

    Community vintasoftware
    idleprocesscc

    Co-Reading MCP

    A local co-reading MCP server for chunked books, reading progress, search, and margin annotations.

    Community idleprocesscc
    JasonJarvan

    Export-Zhihu-Collections

    将知乎收藏夹(公开和私密)批量导出为 Markdown 格式文件. 支持配置收藏夹列表并批量下载, 支持基于URL自动去重, 支持下载专栏和图片, 支持自定义保存路径, 支持调试和错误日志. **同时提供 MCP Server**,可被 AI Agent (如 Claude Code) 直接调用,为大模型提供保存知乎收藏夹的能力。

    Community JasonJarvan