AI Research Agent
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AI Research AgentResearch quantum computing advances and generate dashboard"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š¤ Autonomous AI Research Agent (MCP)
This project implements an autonomous AI Research Agent using the Model Context Protocol (MCP). The agent is built with Python, leverages Google's Gemini LLM, and uses FastMCP to dynamically expose robust tools for web searching, local file management, and UI rendering via Prefab UI.
⨠Features
Autonomous Tool Execution: The Gemini LLM automatically discovers and iteratively calls tools until its objective is met.
MCP Server Architecture: Provides isolated context and tools out-of-the-box over the
stdiotransport.Web Research: Integrates
duckduckgo-searchfor real-time web scraping and topic summarization.File Management: A fully functional local CRUD system that creates markdown reports.
Dynamic UI Generation: Automatically spins up a Prefab UI dashboard in the background to visualize the research results.
Rate Limit Resilience: The client features an intelligent backoff system that intercepts
429quota limits and seamlessly resumes operations without crashing.
Related MCP server: MAGI Orchestrator
šļø Architecture
The project consists of two core layers seamlessly interacting over the Model Context Protocol:
graph TD
Client["client.py<br/>Agent / LLM"]
Server["server.py<br/>FastMCP Server"]
T1["research_topic()"]
T2["manage_report()"]
T3["render_dashboard()"]
Web["Internet (DuckDuckGo / API)"]
File["reports/ Directory"]
UI["Prefab Dashboard"]
Client <-->|stdio / JSON-RPC| Server
Server --> T1
Server --> T2
Server --> T3
T1 --> Web
T2 --> File
T3 --> UIResearch Tool (research_topic) Report Tool (manage_report) UI Tool (render_dashboard)
client.py: Initializes the Gemini LLM client, connects to theserver.pyusingstdio_client, and translates MCP tool schemas into Gemini Function Declarations.server.py: The FastMCP Server instance. Provides the LLM with the context and the capabilities it needs to interact with the environment.dashboard.py: Auto-generated by the server during execution. Contains the Prefab Python UI component tree.
š Getting Started
1. Prerequisites
Python 3.10+
uv(The blazing fast Python package manager)A free Gemini API Key from Google AI Studio.
2. Installation
Install dependencies using uv:
uv init
uv add mcp duckduckgo-search prefab-ui google-genai python-dotenv3. Environment Variables
Copy the .env.example file to .env and paste your API key:
GEMINI_API_KEY=your_actual_api_key_hereSecurity Note: The
.envfile is excluded in.gitignoreto prevent leaking your API keys.
4. Running the Agent
Simply run the client script. The server will start automatically in the background.
.venv\Scripts\python.exe client.pyWatch the console as the agent thinks, searches the web, writes reports, and ultimately starts the dashboard!
5. Viewing the Dashboard
Once the agent completes its run, it will host your research report at: š http://127.0.0.1:5175
(To manually run the dashboard at any time, execute: .venv\Scripts\prefab.exe serve dashboard.py)
š Security Practices
API Keys: Handled securely via
python-dotenv.Git Ignore:
.env,reports/, and dynamic.pygenerations are strictly ignored.Server Communication:
server.pycommunicates exclusively viastdio, meaning it does not expose any network ports to the public by default.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AdiRatnam/AI-Research-Agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server