Token导航 LogoToken导航TokenDH.com
MCP Langgraph Integration Complete End To End Demo Guide logo
AI代理未说明官方级别未说明来源级核验

MCP Langgraph Integration Complete End To End Demo Guide

MCP Server

该项目展示了三种不同的MCP服务器集成方法,包括独立数学计算服务、基于LangGraph的代理工作流和Claude代理的直接集成,适用于需要数学计算功能的开发场景。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
数学计算PythonClaudeLangGraphClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

suranimayur

提供方

suranimayur

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

MCP语言图集成应用

使用OpenRouter的Minimax模型,全面演示了模型上下文协议(MCP)与LangGraph和Claude Agent实现的集成。

🏗️ 架构概述

本项目演示了集成MCP服务器的三种不同方法:

  1. MCP服务器:独立的数学计算服务
  2. LangGraph应用程序:基于代理的工作流与MCP集成
  3. 克劳德代理人:直接集成MCP工具进行计算

📁 项目结构

mcp-langgraph-app/
├── mcp-server/                    # MCP Math Calculator Server
│   ├── src/
│   │   ├── math_calculator.py     # Core math functions
│   │   └── __init__.py
│   ├── requirements.txt
│   └── main.py                    # Server entry point
├── langgraph-app/                # LangGraph Implementation
│   ├── src/
│   │   ├── agent.py              # Graph-based agent
│   │   ├── config.py             # Configuration
│   │   └── __init__.py
│   ├── requirements.txt
│   └── main.py
├── claude-agent-app/             # Claude Agent Implementation
│   ├── src/
│   │   ├── agent.py              # Agent with MCP tools
│   │   ├── config.py             # Configuration
│   │   └── __init__.py
│   ├── requirements.txt
│   └── main.py
├── shared/                       # Shared utilities
│   ├── config.py                 # OpenRouter config
│   └── utils.py                  # Common utilities
├── docker/                       # Containerization
│   ├── Dockerfile.mcp-server
│   ├── Dockerfile.langgraph
│   ├── Dockerfile.claude-agent
│   └── docker-compose.yml
├── docs/                         # Documentation
│   ├── README.md
│   ├── API.md
│   └── DEPLOYMENT.md
├── examples/                     # Usage examples
│   ├── basic_calculations.py
│   └── advanced_calculations.py
├── tests/                        # Test suites
│   ├── test_mcp_server.py
│   ├── test_langgraph.py
│   └── test_claude_agent.py
└── scripts/                      # Setup scripts
    ├── setup.sh
    └── demo.sh

🚀 快速开始

  1. 设置环境
   ./scripts/setup.sh
  1. 运行MCP服务器
   cd mcp-server && python main.py
  1. 测试语言应用程序
   cd langgraph-app && python main.py
  1. 测试克劳德代理
   cd claude-agent-app && python main.py

🔧 配置

  • OpenRouter模型: minimax/minimax-m2:free
  • MCP服务器:端口8080(默认)
  • 基本URL: http://localhost:8080

📚 文档

🧪 例子

# Basic calculation
result = mcp_client.call_tool("add", {"a": 10, "b": 20})

# Advanced calculation
result = mcp_client.call_tool("calculate_expression", {"expression": "sin(45) + log(100)"})```

目录标签

目录标签

数学计算PythonClaudeLangGraph本地部署MCP集成Claude代理OpenRouter

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP