MCP
Exposes local Python tools via a persistent Streamable HTTP endpoint, allowing an OpenAI Agents SDK notebook to discover and invoke them while using Groq for reasoning and tool selection.
README
python3 -m venv .venv or python -m venv .venv source .venv/bin/activate pip install --upgrade pip pip install -r requirements.txt .venv\Scripts\python.exe app.py
Local MCP + Groq + OpenAI Agents SDK
This classroom example contains:
app.py: a persistent local Streamable HTTP MCP server with several tools.mcp_groq_agent.ipynb: an agent that discovers and calls those tools.
Setup
Use Python 3.10 or newer. In a terminal, enter this project folder, create a
virtual environment, and install everything needed by both the server and notebook
(replace python3.11 with your modern Python command if necessary):
cd /Users/somenathmandal/Documents/transfer/grok-playground/MCP
python3.11 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
Create .env from the example and put your Groq API key in it:
cp .env.example .env
GROQ_API_KEY=replace_with_your_groq_key
GROQ_MODEL=openai/gpt-oss-20b
Never commit or share .env; it is excluded by .gitignore.
Run the MCP server
Start the MCP server in one terminal and leave it running:
source .venv/bin/activate
.venv/bin/python app.py
The Streamable HTTP endpoint is now available at:
http://127.0.0.1:8000/mcp
Keep that terminal open. Press Ctrl+C when you want to stop the server.
Run the agent notebook
In a second terminal:
cd /Users/somenathmandal/Documents/transfer/grok-playground/MCP
source .venv/bin/activate
jupyter lab mcp_groq_agent.ipynb
Select the .venv Python kernel if Jupyter asks, then run the cells from top to
bottom. The notebook connects directly to http://127.0.0.1:8000/mcp; it never
starts or imports app.py. The Groq API key is loaded from .env and is never
stored in the notebook.
How the pieces connect
Notebook agent
-> Groq OpenAI-compatible API (model reasoning and tool selection)
-> http://127.0.0.1:8000/mcp (tool discovery and execution)
-> app.py MCP tools
The server must be running before executing the MCP connection cells. If the
notebook reports a connection error, first confirm that the server terminal says
Uvicorn is running on http://127.0.0.1:8000.
The notebook also guards against stale certificate-file environment variables occasionally inherited from notebook launchers. It removes a certificate variable only when the referenced path does not exist; valid custom certificate settings are preserved.
MCP
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.