Skip to content

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:e4b model) 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.sh script.

πŸ—ΊοΈ 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.