mcp-haystack-google-maps
Demo for using MCP Servers in a Haystack Pipeline
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
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 8000Connecting to the Server
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
Fantasy Premier League Kotlin/Compose Multiplatform sample for the Model Context Protocol. Enhance AI assistants with powerful integrations.
AI Observability & Evaluation for the Model Context Protocol. Enhance AI assistants with powerful integrations. Jupyter Notebook-based implementation.
Playwright MCP server TypeScript-based implementation. Trusted by 22000+ developers. Trusted by 22000+ developers. Trusted by 22000+ developers.
MCP Server for Ghidra Java-based implementation. Trusted by 6400+ developers. Trusted by 6400+ developers. Trusted by 6400+ developers.
Official Notion MCP Server TypeScript-based implementation. Trusted by 3400+ developers. Trusted by 3400+ developers. Trusted by 3400+ developers.
Directory for Awesome MCP Servers TypeScript-based implementation. Trusted by 1900+ developers. Trusted by 1900+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP