AM

accenture/mcp-bench

开发工具

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

512 stars 69 forks 质量 39 趋势 20

MCP-Bench:基准测试工具——通过MCP服务器使用LLM代理处理复杂现实任务

概览

MCP-Bench 是一个综合评估框架,旨在通过模型上下文协议(MCP)评估大型语言模型(LLM)在工具使用场景中的能力。该基准测试提供了一个端到端的流程,用于评估不同 LLM 在解决现实任务中发现、选择和使用工具的效率。 * [2025-09] MCP-Bench 已被纳入 NeurIPS 2025 代理扩展环境研讨会。 总体得分代表所有评估维度的平均表现,包括基于规则的模式理解、LLM判定(o4-mini作为评判模型)任务完成、工具使用和规划效果。得分在单服务器和多服务器设置中均值。 有些MCP服务器需要外部API密钥才能正常工作。这些密钥会自动从./mcp_servers/api_key加载。你应该自己在文件./mcp_servers/api_key中设置这些密钥: 所需的 API 密钥包括(这些 API 密钥免费且易于获取。

概述(AI 翻译)

概述

MCP-Bench 是一个综合评估框架,旨在通过模型上下文协议(MCP)评估大型语言模型(LLM)在工具使用场景中的能力。该基准测试提供了一个端到端的流程,用于评估不同 LLM 在解决现实任务中发现、选择和使用工具的效率。

新闻

  • [2025-09] MCP-Bench 已被纳入 NeurIPS 2025 代理扩展环境研讨会。

排行榜

排名 型号 总体评分
1 GPT-5 0.749
2 O3 0.715
3 GPT-OSS-120B 0.692
4 双子座-2.5-PRO 0.690
5 克洛德十四行诗 0.681
6 QWEN3-235b-A22B-2507 0.678
7 GLM-4.5 0.668
8 GPT-OSS-20B 0.654
9 基米-K2 0.629
10 QWEN3-30b-A3b-指示-2507 0.627
11 双子座-2.5-闪光-轻型 0.598
12 GPT-4o 0.595
13 杰玛-3-27b-it 0.582
14 羊驼-3-3-70b-指示 0.558
15 GPT-40-MINI 0.557
16 米斯特拉尔-小-2503 0.530
17 骆马-3-1-70b-指示 0.510
18 新-微-V1 0.508
19 羊驼-3-2-90b-视觉-指示 0.495
20 骆马-3-1-8b-指示 0.428

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

README

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

MCP-Bench: Benchmarking Tool-Using LLM Agents with Complex Real-World Tasks via MCP Servers

Overview

MCP-Bench is a comprehensive evaluation framework designed to assess Large Language Models’ (LLMs) capabilities in tool-use scenarios through the Model Context Protocol (MCP). This benchmark provides an end-to-end pipeline for evaluating how effectively different LLMs can discover, select, and utilize tools to solve real-world tasks.

News

  • [2025-09] MCP-Bench is accepted to NeurIPS 2025 Workshop on Scaling Environments for Agents.

Leaderboard

Rank Model Overall Score
1 gpt-5 0.749
2 o3 0.715
3 gpt-oss-120b 0.692
4 gemini-2.5-pro 0.690
5 claude-sonnet-4 0.681
6 qwen3-235b-a22b-2507 0.678
7 glm-4.5 0.668
8 gpt-oss-20b 0.654
9 kimi-k2 0.629
10 qwen3-30b-a3b-instruct-2507 0.627
11 gemini-2.5-flash-lite 0.598
12 gpt-4o 0.595
13 gemma-3-27b-it 0.582
14 llama-3-3-70b-instruct 0.558
15 gpt-4o-mini 0.557
16 mistral-small-2503 0.530
17 llama-3-1-70b-instruct 0.510
18 nova-micro-v1 0.508
19 llama-3-2-90b-vision-instruct 0.495
20 llama-3-1-8b-instruct 0.428

Overall Score represents the average performance across all evaluation dimensions including rule-based schema understanding, LLM-judged (o4-mini as judge model) task completion, tool usage, and planning effectiveness. Scores are averaged across single-server and multi-server settings.

Quick Start

Installation

  1. Clone the repository
git clone https://github.com/accenture/mcp-bench.git
cd mcp-bench
  1. Install dependencies
conda create -n mcpbench python=3.10
conda activate mcpbench
cd mcp_servers
# Install MCP server dependencies
bash ./install.sh
cd ..
  1. Set up environment variables
# Create .env file with API keys
# Default setup uses both OpenRouter and Azure OpenAI
# For Azure OpenAI, you also need to set your API version in file benchmark_config.yaml (line205)
# For OpenRouter-only setup, see "Optional: Using only OpenRouter API" section below
cat > .env << EOF
export OPENROUTER_API_KEY="your_openrouterkey_here"
export AZURE_OPENAI_API_KEY="your_azureopenai_apikey_here"
在 GitHub 查看完整 README

安装

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

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