praj-tarun/langchain-mcp-server
If you are the rightful owner of langchain-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project is a learning journey into Model Context Protocol (MCP) and its integration with AI tools, focusing on building a simple server to test the protocol.
hello
Print a greeting message
calculate
Perform basic math calculations
My MCP Learning Journey
Started this project to understand how MCP works with AI tools. Built a simple server with basic tools to test the protocol.
What I Built
- Simple greeting tool (because hello world is always first!)
- Basic calculator for math operations
- Debug logging to see what's happening under the hood
Getting Started
Just need Python and a few packages:
pip install -r requirements.txt
pip install mcp flask
python mcp_server.py
That's it! No API keys needed for this basic setup.
How to Test
Web interface (easiest way):
python web_ui.py
Open http://localhost:5000 and click around
Quick function test:
python simple_test.py
Full protocol test (if you're curious about JSON-RPC):
python test_client.py
AI Tool Integration
For Claude:
- Copy
mcp_config.json
to your AI tool's MCP configuration directory - Restart your AI tool
- The tools will be available as
simple-mcp-server___hello
andsimple-mcp-server___calculate
Available Tools:
hello
- Description: Print a greeting message
- Parameters:
name
(optional string) - Example:
{"name": "Alice"}
calculate
- Description: Perform basic math calculations
- Parameters:
operation
(required): "add", "subtract", "multiply", "divide"a
(required): First numberb
(required): Second number
- Example:
{"operation": "add", "a": 10, "b": 5}