MCP Agent with Web Search Integration
Integrates OpenAI's GPT-4o as the language model for the AI assistant, enabling intelligent query answering and tool-based actions.
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., "@MCP Agent with Web Search IntegrationWhat is the latest news about the Mars rover?"
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.
MCP Model Context Protocol
🧩 MCP Agent with Web Search Integration
This project demonstrates how to build an intelligent AI assistant using LlamaIndex, FastMCP, and OpenAI's GPT-4o, enhanced with real-time web search capabilities via Serper API.
With this setup:
You can interact with an agent that answers your queries.
If needed, the agent fetches fresh data from the internet to provide accurate and up-to-date information.
Note:
This project uses uv (a faster Python package manager) instead of pip for dependency management.
Features
✅ AI Assistant powered by OpenAI gpt-4o
✅ Integrated with llama-index Function Agent
✅ Real-time Web Search using Serper.dev
✅ Async-first implementation for speed 🚀
✅ Custom MCP server and client communication
✅ Clean streaming of tool calls and responses
🧩 Tech Stack
Python 3.11+
uv (Python dependency management)
FastMCP
LlamaIndex
OpenAI GPT-4o
HTTPx (for async HTTP requests)
Serper.dev API (Google Search API)
BeautifulSoup (Web scraping)
Related MCP server: Perplexity MCP Server
📖 References
Server-side code reference:
MCP Quickstart ServerClient-side code reference:
LlamaIndex MCP Integration Example
🚀 Running the Project
1. Start MCP Server
uv run mcp_server.py --server_type=sse2. Start MCP Client
python mcp_client.py3. Usage Example
You: Who is the CEO of OpenAI?
Agent: Sam Altman is the CEO of OpenAI. (retrieved from latest web search)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.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI assistants to perform up-to-date web searches through the Tavily API, providing comprehensive search results with AI-generated summaries.Last updated7MIT
- AlicenseAqualityDmaintenanceIntegrates Perplexity AI's chat capabilities with real-time web search, enabling users to ask questions and receive AI-powered answers with up-to-date information and citations from verified web sources.Last updated1401Apache 2.0
- AlicenseBqualityDmaintenanceEnables web search via Serper API with advanced search operators and webpage scraping capabilities to extract content in plain text or markdown format.Last updated826,347MIT

SerpApi MCP Serverofficial
Alicense-qualityBmaintenanceEnables searches across multiple search engines (Google, Bing, YouTube, etc.) and retrieval of parsed search results through SerpApi, allowing natural language queries to access live search engine data.Last updated162MIT
Related MCP Connectors
Search your knowledge bases from any AI assistant using hybrid RAG.
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
The best web search for your AI Agent
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/swastikmaiti/ModelContextProtocol-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server