AI Agentic
БесплатноНе проверенAn MCP server exposing employee info retrieval and web search tools, designed to be consumed by a LangChain agent for decoupled tool execution.
Описание
An MCP server exposing employee info retrieval and web search tools, designed to be consumed by a LangChain agent for decoupled tool execution.
README
This repository contains an exploration of the Model Context Protocol (MCP) using LangChain and FastMCP. It demonstrates how to decouple tool implementations into an independent MCP server, which is then dynamically consumed by a LangChain agent.
Features
- FastMCP Server: A standalone server exposing tools over a streamable HTTP connection.
get_employee_infos: A mock tool for fetching employee details (name, salary, seniority).search: Web search capability utilizing theTavilySearchAPI.
- LangChain MCP Agent: A ReAct-style conversational agent powered by OpenAI's
gpt-4o-mini. The agent dynamically queries and utilizes the tools exposed by the MCP server usingMultiServerMCPClient. - Decoupled Architecture: Demonstrates building scalable AI agents where the LLM logic and tool executions can exist on different servers.
Project Structure
mcp-server.py: The FastMCP server implementation that defines and serves the tools.agent_graph.py: The interactive LangChain agent that connects to the MCP server and answers user queries via the terminal.graph.ipynb: A Jupyter Notebook for exploring and prototyping.main.py: A simple boilerplate entry point.pyproject.toml/uv.lock: Project metadata and dependencies, managed via uv.
Prerequisites
- Python 3.13 or higher.
- An OpenAI API Key.
- A Tavily API Key (required for the web search tool).
Installation
This project uses uv for dependency management.
Clone the repository:
git clone <your-repo-url> cd AI-Agentic-MCP-mainInstall dependencies:
uv syncAlternatively, using pip:
pip install .Configure Environment Variables: Create a
.envfile in the root directory and add your API keys:OPENAI_API_KEY=your_openai_api_key_here TAVILY_API_KEY=your_tavily_api_key_here
Usage
To test the multi-server architecture, you need to run the server and the agent simultaneously.
Start the MCP Server: In your first terminal, run:
python mcp-server.pyThe server will start listening on
http://localhost:24000/mcp.Run the Interactive Agent: In a separate terminal, launch the agent:
python agent_graph.py
You can now ask questions in the prompt (e.g., "What is the salary of Alice?" or search the web). Type exit to quit the agent.
Установка AI Agentic
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/FiddelMyStick/AI-Agentic-MCPFAQ
AI Agentic MCP бесплатный?
Да, AI Agentic MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для AI Agentic?
Нет, AI Agentic работает без API-ключей и переменных окружения.
AI Agentic — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить AI Agentic в Claude Desktop, Claude Code или Cursor?
Открой AI Agentic на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare AI Agentic with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
