disler/nano-agent 是从 https://github.com/disler/nano-agent. 导入的 MCP 服务器候选
概览
disler/nano-agent 是从 https://github.com/disler/nano-agent. 导入的 MCP 服务器候选
概述(AI 翻译)
在这里观看了我们如何利用GPT-5和Claude Code配合纳米智能体。
什么? 一个面向实验性、小型工程代理的MCP服务器,支持多提供者LLM。
为什么? 测试和比较云和本地大型语言模型在性能、速度和成本方面的代理能力。
“这不再是单一的提示呼叫。而是你的代理如何将多种工具串联起来,代表你实现真正的工程成果。”——摘自我们的评估
🎬 看它实际行动
多模型评估流程 - 观看9个模型(GPT-5、Claude Opus、本地GPT-OSS)并行运行在同一台M4 Max上:
模型比较:GPT-5与本地模型——令人惊讶的结果:GPT-OSS 20B/120B在设备上运行,成本仅为0.00美元:
🔥 我们测试的主要发现
- 令人惊喜的赢家:考虑到速度和成本,GPT-5 Nano/Mini 常常优于大型模型
- 本地革命:GPT-OSS 20B/120B模型在M4 Max(128GB RAM)上完成真实的代理编码任务
- 成本现实检验:Claude Opus 4.1极其昂贵——性能并非一切
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Nano Agent
Watched how we used GPT-5 and Claude Code with nano-agents here.
What? A MCP Server for experimental, small scale engineering agents with multi-provider LLM support.
Why? To test and compare Agentic Capabilities of Cloud and Local LLMs across Performance, Speed, and Cost.
“It’s not about a single prompt call anymore. It’s about how well your agent chains together multiple tools to accomplish real engineering results on your behalf.” - From our evaluation
🎬 See It In Action
Multi-Model Evaluation Flow - Watch 9 models (GPT-5, Claude Opus, Local GPT-OSS) running in parallel on the same M4 Max:
Model Comparison: GPT-5 vs Local Models - Surprising results: GPT-OSS 20B/120B running on-device with $0.00 cost:
🔥 Key Findings from Our Testing
- Surprising Winners: GPT-5 Nano/Mini often outperform larger models when factoring in speed and cost
- Local Revolution: GPT-OSS 20B/120B models complete real agentic coding tasks on M4 Max (128GB RAM)
- Cost Reality Check: Claude Opus 4.1 is extraordinarily expensive - performance isn’t everything
- The Trade-off Triangle: Performance vs Speed vs Cost - you don’t always need the most expensive model
Installation
Quick Install (Recommended)
- Install Astral UV
- Setup Claude Code
- Setup Ollama
- Get your OpenAI API key and Anthropic API key
- Setup dotenv
cp ./.env.sample ./.envand fill out variablescp ./apps/nano_agent_mcp_server/.env.sample ./apps/nano_agent_mcp_server/.envand fill out variables
- Clone the repository
git clone https://github.com/disler/nano-agent
- Global Install
nano-agentto expose it for Claude Code (any mcp client)cd nano-agent/apps/nano_agent_mcp_server./scripts/install.shuv tool install -e .
- cp
.mcp.json.sampleto.mcp.jsonto usenano-agent - You should end up with a
.mcp.jsonfile that looks like this:
{
"mcpServers": {
"nano-agent": {
"command": "nano-agent",
"args": []
}
}
}
- You can also test without installing
nano-agentglobally by running it this directory with
{
"mcpServers": {
"nano-agent": {
"command": "uv",
"args": ["--directory", "apps/nano_agent_mcp_server", "run", "nano-agent"]
}
}
}
Now you can follow the Nano Agent Interaction section below to test out the nano agent.
Nano Agent Interaction
There are three ways to interact with the nano agent.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"nano-agent": {
"command": "nano-agent",
"args": []
}
}
}