trackmcp
Back to directory
oryx1729

mcp-haystack-google-maps

View on GitHub

Demo for using MCP Servers in a Haystack Pipeline

0 stars Jupyter NotebookServers & Infrastructure Updated Apr 24, 2025

Documentation

MCP Haystack Demo

A Haystack integration connecting to MCP servers with a focus on Google Maps API integration.

Overview

This project implements `MCPServer`, a Haystack `Toolset` that connects to remote MCP servers and dynamically loads available tools. The implementation is based on the recently added `Toolset` abstraction in Haystack (https://github.com/deepset-ai/haystack/pull/9161).

Features

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

Installation

Use `uv` to install the dependencies.

Quick Start

Check the demo notebook for a complete example connecting to a Google Maps MCP server.

Running the Google Maps MCP Server

bash
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

Connecting to the Server

python
from haystack.tools import MCPServer, SSEServerInfo
from haystack.components.tools import ToolInvoker

# Create server info
server_info = SSEServerInfo(
    base_url="http://localhost:8000",
)

# Create the MCP server toolset
mcp_server = MCPServer(server_info=server_info)

# Use the toolset with a ToolInvoker or ChatGenerator component
invoker = ToolInvoker(tools=mcp_server)

Frequently asked questions

What is mcp-haystack-google-maps?

mcp-haystack-google-maps is Demo for using MCP Servers in a Haystack Pipeline

How do I install mcp-haystack-google-maps?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is mcp-haystack-google-maps open source?

Yes — it is hosted on GitHub at https://github.com/oryx1729/mcp-haystack-google-maps.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP