A server implementation demonstrating how AI models can interact with external tools and services through Model Context Protocol, featuring integrations for calculator functions, GitHub repositories, and Google Maps searches.
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!