MCP.so
登录

MCP Haystack Demo

@oryx1729

基本信息

分类

媒体与设计

传输方式

stdio

作者

oryx1729

关于 MCP Haystack Demo

Demo for using MCP Servers in a Haystack Pipeline

MCP Haystack Demo 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-haystack-google-maps": {
      "command": "docker",
      "args": [
        "run",
        "-it",
        "--rm",
        "-p",
        "8000:8000",
        "-e",
        "GOOGLE_MAPS_API_KEY=$GOOGLE_MAPS_API_KEY",
        "supercorp/supergateway",
        "\\"
      ]
    }
  }
}

MCP Haystack Demo 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Haystack Demo?

MCP Haystack Demo is a Haystack Toolset that connects to remote MCP (Model Context Protocol) servers, with a focus on Google Maps API integration. It dynamically discovers and loads available tools from the server for use in Haystack pipelines.

How to use MCP Haystack Demo?

Install dependencies with uv, then start a Google Maps MCP server using Docker and connect via the MCPServer class. See the provided demo notebook for a complete example. Use ToolInvoker or ChatGenerator with the loaded toolset.

Key features of MCP Haystack Demo

  • Connect to remote MCP servers using SSE (Server-Sent Events)
  • Dynamically discover and load available tools from the MCP server
  • Seamless integration with Haystack pipelines

Use cases of MCP Haystack Demo

  • Integrating Google Maps API tools into a Haystack pipeline
  • Building a location-aware AI assistant using Haystack components
  • Demonstrating MCP server connectivity within the Haystack framework

常见问题

1

What transport does the MCP server use?

The MCP server uses SSE (Server-Sent Events) as the transport protocol.

2

How do I start the Google Maps MCP server?

Run `docker run -it --rm -p 8000:8000 -e GOOGLE_MAPS_API_KEY=$GOOGLE_MAPS_API_KEY supercorp/supergateway --stdio "npx -y @modelcontextprotocol/server-google-maps" --port 8000`.

3

What runtime dependencies are required?

The project relies on `uv` for installation and requires Haystack libraries that support the `MCPServer` and `SSEServerInfo` classes.

4

Is this a production-ready server?

No, this is a demo – it demonstrates connecting Haystack to MCP servers, specifically Google Maps. It should not be used in production without further hardening.

5

Where does the data (e.g., API keys) live?

The Google Maps API key is passed as an environment variable (`GOOGLE_MAPS_API_KEY`) to the Docker container. No data is stored locally by the server.

评论

媒体与设计 分类下的更多 MCP 服务器