Demonstrates Model Context Protocol (MCP) integration enabling AI models to execute tools, access resources, and interact with services like custom calculators, GitHub, and Google Maps through secure, extensible APIs.
Unlock the full potential of MCP Model Context Protocol Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
This repository demonstrates the usage of Model Context Protocol (MCP) with various integrations including a custom calculator server, GitHub, and Google Maps.
Model Context Protocol (MCP) is a protocol that enables AI models to interact with external tools and services. It provides a standardized way for AI models to:
├── server.py # MCP server (custom creation)
├── client_server.py # MCP Client
├── 1)maps.py # Google Maps MCP integration
├── 2)github.py # GitHub MCP integration
└── requirements.txt # Project dependencies
pip install -r requirements.txt
Tools: Functions that perform specific actions
@mcp.tool
decoratorResources: Static or dynamic data sources
@mcp.resource
decoratorPrompts: Template-based text generation
@mcp.prompt
decorator@mcp.tool(name="add")
def add(a: int, b: int):
return a + b
Running server.py file, it will up and run the MCP server.
result = await session.call_tool("add", arguments={"a": 5, "b": 3})
Running client_server.py file, it will connect to the MCP server.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!