MCP Multi-Server AI Agent
The intelligence is in the loop.
What changes when an AI model can do more than generate an answer?
The story behind the work.
01Understanding agency
I built this project because I wanted to understand what actually makes an AI system agentic.
Instead of following a predefined sequence, a local Qwen model running through Ollama can inspect the tools available to it, decide what it needs, execute actions through MCP, observe the results and continue working until the task is complete.
The agent works across multiple MCP servers.
02Across multiple servers
A restricted Filesystem server handles controlled file operations, while a Memory server provides persistent structured knowledge.
A single request can require the model to move dynamically between both depending on what it decides needs to happen next.
I also built the reliability layer around that loop: structured model responses, retry logic, invalid-response recovery, execution limits, failure handling and logging.
03Making the process visible
A custom Streamlit interface makes the process visible by showing agent activity, server status, tool execution and results while the system works.
The interesting part wasn’t giving an LLM tools.
It was building the loop that lets the model decide what happens next.

Image unavailable.
project photographLayout study · Media not supplied
Project summary
A local model discovers tools, executes actions, observes results and decides what happens next.