MCP Explorer
Welcome to the MCP Explorer developer documentation!
MCP Explorer is a state-of-the-art, local-first agentic query interface built with Python and LangChain. It uses a ReAct (Reasoning and Acting) loop powered by local large language models (such as gemma4:e4b via Ollama) to autonomously invoke tools, query external APIs, search databases, and format results.
The system is equipped with Model Context Protocol (MCP) clients to connect to remote or local MCP servers dynamically and query resources in real time.
π Key Features
- Local-First Agent Core: Run LLMs locally using Ollama (defaulting to the
gemma4:e4bmodel) with zero latency or remote API dependency. - Dynamic Model Context Protocol (MCP) Loader: Automatically discover, load, and authenticate tools from multiple MCP servers dynamically using configurations in
mcpConfig.json. - Standard Tools Extension: Load and dynamically configure parameters (like custom user agents or endpoints) for classic tools (Wikipedia, Arxiv) defined dynamically in
toolsConfig.json. - Interactive Chat UI: A responsive, real-time streaming web dashboard built using Chainlit for developer conversations.
- Observability Pipeline: Automatic tracking of every message, prompt, LLM invocation, tool execution, token usage, and error boundary using Langfuse.
- Dockerized Stack: Run the entire systemβincluding database backends, workers, and visualization dashboardsβusing a simple
./docker-run.shscript.
πΊοΈ High-Level System Architecture
The workflow follows a standard ReAct loop:
[User Inputs Query]
β
βΌ
[Chainlit App Session]
β
βΌ
[ReAct Agent] <βββ(Reads Configs: env / toolsConfig.json)
β
βββββββββ΄ββββββββ
βΌ βΌ
[Run Standard] [Run MCP Server]
[Tools] [Tools]
β β
βββββββββ¬ββββββββ
βΌ
[Agent Formulates] βββ(Callback)ββββΊ [Langfuse Traces Logged]
[Response]
β
βΌ
[Stream to UI]
π Next Steps
Navigate through the tabs above or click the links below to continue learning: * Getting Started β Learn how to set up the environment and run the code. * Configuration Guide β Understand every env variable and JSON parameter. * Technical Architecture β Dive deep into agent loops and MCP protocol. * Component Breakdown β Technical details of the Python codebase. * Testing & Verification β Learn to execute automated and manual browser tests.