Learn_MCP Math Server
A Model Context Protocol (MCP) server that demonstrates mathematical capabilities through a LangChain integration, allowing clients to perform math operations via the MCP protocol.
README
Learn_MCP Project Setup Guide
This guide will help you set up and run the Learn_MCP project, which demonstrates using a Model Context Protocol (MCP) math server with LangChain.
Prerequisites
- Python 3.8 or higher (recommended: use a virtual environment)
- uv (a fast Python package manager)
- A valid GROQ API key (for ChatGroq)
1. Clone the Repository
git clone <your-repo-url>
cd Learn_MCP
2. Create and Activate a Virtual Environment (optional but recommended)
python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate
3. Install Dependencies with uv
uv pip install -r requirements.txt
Or, to use the lockfile (if present):
uv pip sync uv.lock
4. Set Up Environment Variables
Create a .env file in the project root with your GROQ API key:
GROQ_API_KEY=your_groq_api_key_here
5. Run the Math Server
The math server will be started automatically by the client script as a subprocess (mathserver.py). You do not need to start it manually.
6. Run the Client
uv pip run python client.py
Or simply:
python client.py
7. Troubleshooting
- If you see
ImportError: langchain_mcp_adapters.fastapi could not be resolved, ensure the package is installed or available in your environment. - If you get errors about missing modules, check your
requirements.txtand install any missing dependencies. - Make sure your
.envfile is present and contains a validGROQ_API_KEY.
8. Project Structure
client.py— Main client that connects to the math MCP servermathserver.py— Math MCP server (started by the client)requirements.txt— Python dependencies.env— Environment variables (not committed to version control)
Feel free to update this README with additional details as your project evolves.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.