AM

alphaiterations/mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

8 stars 8 forks 质量 49 趋势 16

Read Complete Medium Article here : Building an AI Agent with Model Context Protocol (MCP): A Complete Guide

概览

Read Complete Medium Article here : Building an AI Agent with Model Context Protocol (MCP): A Complete Guide This project demonstrates a complete implementation of the with an intelligent agent built using and . The system enables AI applications to seamlessly interact with external tools through a standardized protocol. is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). Think of it as a universal adapter that allows AI applications to: - 🔌 Connect to external data sources and tools - 🛠️ Execute actions in a standardized way - 🔄 Maintain consistent communication patterns - 🌐 Enable tool interoperability across different AI systems 1. : Exposes tools/capabilities that can be called by clients 2. : Consumes tools from MCP servers 3. : Communication standard for request/response patterns 4. : Individual capabilities exposed by the server (e.g.

README

以下为原文 README 节选,完整内容请查看原文。

MCP Server with LangGraph Agent

Read Complete Medium Article here : Building an AI Agent with Model Context Protocol (MCP): A Complete Guide

📖 Overview

This project demonstrates a complete implementation of the Model Context Protocol (MCP) with an intelligent agent built using LangGraph and OpenAI. The system enables AI applications to seamlessly interact with external tools through a standardized protocol.

🧩 What is MCP (Model Context Protocol)?

Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). Think of it as a universal adapter that allows AI applications to:

  • 🔌 Connect to external data sources and tools
  • 🛠️ Execute actions in a standardized way
  • 🔄 Maintain consistent communication patterns
  • 🌐 Enable tool interoperability across different AI systems

Key Concepts

  1. MCP Server: Exposes tools/capabilities that can be called by clients
  2. MCP Client: Consumes tools from MCP servers
  3. JSON-RPC Protocol: Communication standard for request/response patterns
  4. Tools: Individual capabilities exposed by the server (e.g., weather, web search)

🏗️ Architecture

┌─────────────────────────────────────────────────────────────┐
│                        USER INPUT                            │
│                 "What's the weather in Mumbai?"              │
└──────────────────────┬──────────────────────────────────────┘
                       │
                       ▼
┌─────────────────────────────────────────────────────────────┐
│                   LANGGRAPH AGENT                            │
│  ┌──────────────┐         ┌──────────────┐                  │
│  │   Routing    │────────▶│   Response   │                  │
│  │     Node     │         │    Node      │                  │
│  └──────┬───────┘         └──────────────┘                  │
│         │                                                     │
│         │ Uses OpenAI to determine:                          │
│         │ - Which tool to use                                │
│         │ - Extract parameters                               │
└─────────┼─────────────────────────────────────────────────────┘
          │
          ▼
┌─────────────────────────────────────────────────────────────┐
│                    MCP CLIENT                                │
│  - Manages connection to MCP server                          │
│  - Sends JSON-RPC requests                                   │
│  - Receives and processes responses                          │
└──────────────────────┬──────────────────────────────────────┘
                       │
                       │ JSON-RPC over STDIO
                       │
                       ▼
┌─────────────────────────────────────────────────────────────┐
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →