FastMCP + LangGraph Webinar Demo
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
FastMCP + LangGraph — Webinar Demo
A live-coding demo for the "AI Agents Are Only As Useful As the Tools They Can Reach" webinar.
Builds a real MCP server with six tools, connects it to a LangGraph ReAct agent, and lets you pick exactly which tool to call and what question to ask — all from the terminal.
What's in this repo
File | Purpose |
| The MCP server — defines all six tools |
| The interactive demo runner |
| Python dependencies |
| Template for your API keys |
Related MCP server: mcp-web-calc
Quick start
1. Clone / download the files
Make sure demo_mcp_server.py and demo_agent.py are in the same folder.
2. Install dependencies
pip install -r requirements.txtPython 3.10+ required.
3. Set up your API keys
cp .env.example .envOpen .env and fill in your keys (see API keys below).
4. Run the demo
python demo_agent.pyNo OpenAI key yet? Run in tools-only mode — you can still test all six tools manually:
python demo_agent.py --tools-onlyAPI keys
OpenAI (required for the agent — Section 3)
Click Create new secret key
Copy the key and paste it as
OPENAI_API_KEYin your.env
The demo uses gpt-4o-mini by default — the cheapest model that handles tool-calling well.
Change it by setting OPENAI_MODEL=gpt-4o in .env if you want the more powerful version.
Cost note: A full run-through of the demo costs roughly $0.01–0.05 with gpt-4o-mini.
Tavily (required for web_search tool)
Go to https://app.tavily.com and sign up (free)
Copy your API key from the dashboard
Paste it as
TAVILY_API_KEYin your.env
Free tier: 1,000 searches/month — more than enough for demos.
Without this key the
web_searchtool returns an error message, but all other tools work fine.
Demo walkthrough
Section 1 — Tool Discovery
Automatically connects to the MCP server and lists all available tools with their descriptions.
Section 2 — Interactive Tool Testing
You choose which tool to call and supply its arguments yourself. No LLM involved — raw tool input/output.
Available tools:
1. web_search
2. fetch_url
3. save_note
4. read_note
5. list_notes
6. calculate
Enter tool name or number (or 'done'): 6
Tool : calculate
Args : ['expression']
expression (string): sqrt(144) + piType done when you're ready to move on.
Section 3 — LangGraph Agent Demo
The agent picks its own tools based on your question. You can choose from preset questions or type your own.
Preset questions:
1. Single tool — calculator
2. Multi-tool — search then save
3. Full workflow — search, fetch, calculate, save
4. Read back a saved file
5. Custom question
> 5
Type your question: What is 2 to the power of 32?Type
quietto toggle the verbose tool-call trace on/offType
doneto end this section
The six tools
Tool | Description | Requires |
| Real web search via Tavily |
|
| Fetches and strips HTML from any URL | — |
| Evaluates math expressions safely ( | — |
| Writes text to | — |
| Reads a previously saved note | — |
| Lists all saved notes with sizes | — |
Troubleshooting
ModuleNotFoundError
Run pip install -r requirements.txt again. If you're in a virtual environment, make sure it's activated.
OPENAI_API_KEY not set
Make sure you copied .env.example to .env (not .env.example) and filled in the key.
Server file not founddemo_agent.py and demo_mcp_server.py must be in the same directory.
web_search returns an error
Add your TAVILY_API_KEY to .env. All other tools still work without it.
Agent gives a wrong answer / tool call fails
Try adding more detail to your question. The agent uses tool descriptions to decide what to call — more specific questions get better results.
Resources
This server cannot be deployed
Maintenance
Related MCP Connectors
Web scraping, Google SERP, Markdown and ChatGPT/Gemini answers as typed tools for AI agents.
Web tools for AI agents: URL to clean Markdown, site crawl, screenshots, PDF/Office to text, OCR.
Public web tools for agents: product extraction, claim checks, webpage QA and ranked audits.
62 real-world tools for agents: search, scraping, social, enrichment, image, video, voice.
Related MCP Servers
- FlicenseDqualityDmaintenanceProvides web connectivity tools for searching the web via DuckDuckGo or SerpAPI, fetching URL content, and extracting readable text from web pages.33-
- AlicenseNot gradedqualityCmaintenanceProvides web search, URL fetching, summarization, math evaluation, and Wikipedia tools for LM Studio without needing an API key.3MIT
- FlicenseNot gradedqualityDmaintenanceProvides 19 tools for web search, content fetching, and extraction, including DuckDuckGo search, YouTube transcripts, and webpage screenshots.1-
- FlicenseBqualityDmaintenanceProvides web search, dice rolling, text processing, and dad jokes tools, integrated with LangGraph for intelligent workflow orchestration.4-