
Hebline
io.github.Hebline由 GitHub 账号 Hebline 发布v0.2.1更新于 Oct 24, 2026
Intelligent API routing for AI agents. Best service, best price, free alternatives.
概览
将助手的 API 调用(LLM、地理编码、翻译、搜索、天气等)路由到免费或付费服务,并返回结果及费用与延迟
- 可以做什么
- Hebline 是一个本地 MCP 服务器,充当外部 API 的中介。execute 工具会为所需能力选择服务、发起调用并返回结果及服务、费用、延迟等元数据;compare 列出某能力的全部服务及评分,categories 列出支持的能力。它覆盖九类共二十项服务,包括 LLM、地理编码、翻译、网页抓取、汇率、OCR、天气、网页搜索和新闻,在未配置付费密钥时优先使用免费服务。
- 适用场景
- 当助手需要多种外部查询,而你希望用统一接口优先使用免费服务并了解每次调用花费时适用。适合原本要分别调用多个 API、且需要掌握开销的智能体。
- 运行要求
- 以本地 stdio 进程运行,通过 npm(npx 或全局安装)安装并在客户端的 MCP 配置中设置,需要 Node.js。免费服务无需密钥;付费服务需设置 DEEPL_API_KEY、GOOGLE_MAPS_API_KEY 或 LIBRETRANSLATE_API_KEY,README 还列出其他服务商密钥。需要网络访问。未设置本地 LLM 密钥时,LLM 调用经 Hebline 代理并有每日免费额度。
安装
在 SourceWeft 中
- 打开 控制台中的 Hebline,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Hebline MCP Server
Your agents overpay for every API call. We fix that.
Hebline routes every API call — including LLM calls — to the best service at the right price. Free when it's enough. Paid when it matters. It knows the difference.
Every other router earns a margin on your paid calls. Routing you to free alternatives kills their revenue. No margin on your API calls. Ever.
Why Hebline?
Your agents are bleeding money. One task triggers 5–10 paid API calls across different providers. No transparency, no cost control. Hebline fixes that:
- Route free first — Most calls don't need the best model. Hebline learns precisely when it matters — and keeps learning as the market changes.
- No margin. Honest routing. — We don't earn when you pay more. So we're the only router built to actually save you money.
- Provider Abstraction — Your agent says what it needs ("geocode this address"), not which service to use. Swap providers without changing agent code.
- Cost Transparency — Every call is logged with service used, latency, and cost. Know exactly what your agents spend.
- Learns from usage — Hebbian learning strengthens what works, weakens what doesn't. Your broker gets smarter every day.
- BYOK (Bring Your Own Key) — Paid services use your API keys via environment variables. No key? The service is automatically excluded from routing.
- GDPR compliant — Only anonymized metadata logged. No API call content stored. Self-hosted option for zero data leaving your network.
- Open Source — Core MCP server is MIT licensed. Community-driven adapter system.
How It Works
Your agent connects to Hebline as an MCP server. Instead of calling APIs directly, it uses Hebline's tools — execute, compare, or categories. Hebline scores all available services, picks the best one, makes the call, and returns the result with full metadata.
Available MCP Tools
Quick Start
Add to Claude Desktop
Add to claude_desktop_config.json:
Add to Claude Code
Add to .mcp.json:
Add to Cursor
Add to .cursor/mcp.json:
Add to Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Add to VS Code (Copilot)
Add to .vscode/mcp.json:
Install globally
With paid services (optional)
Set environment variables for any paid providers you want to use:
No keys? No problem — Hebline routes to free alternatives automatically.
Supported Services
9 categories, 20 services. Free services work instantly — no API key needed. LLMs route through the Hebline proxy when no local key is set (50 free calls/day).
Example
An agent asks: "Geocode the Brandenburg Gate in Berlin"
Hebline receives:
Hebline responds:
The agent got coordinates, knows it was free, and Hebline logged the call for future analysis.
Architecture
Call Logging
Every API call is logged to ~/.hebline/calls.jsonl:
No content is logged — only metadata. This data will power Hebbian Learning in future versions.
Roadmap
- Core MCP server with stdio transport
- Weighted scoring router
- Geocoding adapters (Nominatim, Google Maps)
- Translation adapters (MyMemory, LibreTranslate, DeepL)
- BYOK key management
- Append-only call logging
- CI/CD with GitHub Actions
- Hebbian Learning — router learns from call history
- Hopfield network scoring (replaces weighted scoring)
- More categories (web scraping, currency, OCR, email)
- Community adapter system
- SSE transport for remote deployments
- Web dashboard for cost analytics
- Budget alerts and spending limits
- Multi-agent cost attribution
Contributing
Contributions are welcome! Adding a new adapter is straightforward — implement the ServiceAdapter interface and register it.
License
Built by Hebline — Route free first. Only pay when necessary.
来源:README.md,提交 548ed23
工具
0版本历史
1- v0.2.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分