Llm Behave
БесплатноНе проверенExposes llm-behave's behavioral regression testing as MCP tools, allowing offline semantic similarity checks on LLM outputs without any API calls.
Описание
Exposes llm-behave's behavioral regression testing as MCP tools, allowing offline semantic similarity checks on LLM outputs without any API calls.
README
MCP server exposing llm-behave behavioral regression testing as callable tools inside Claude Desktop, Claude Code, and any MCP-compatible client.
Runs offline — no API calls, no external services. Uses sentence-transformers for embedding-based similarity.
Tools
| Tool | What it does |
|---|---|
run_behavior_test |
Assert that a model output matches an expected behavior description |
compare_outputs |
Detect semantic drift between a baseline and a new LLM output |
list_builtin_behaviors |
Browse the built-in behavioral checks shipped with llm-behave |
Quickstart — Claude Desktop
Add to your claude_desktop_config.json (no install needed, uvx handles it):
{
"mcpServers": {
"mcp-llm-behave": {
"command": "uvx",
"args": ["mcp-llm-behave"]
}
}
}
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop after editing. The first run downloads the sentence-transformers model (~80 MB) once and caches it.
Quickstart — Claude Code (CLI)
claude mcp add mcp-llm-behave uvx mcp-llm-behave
Install via pip / uv
pip install mcp-llm-behave
# or
uv add mcp-llm-behave
Run the server directly:
mcp-llm-behave
Tool reference
run_behavior_test
Check whether a model output semantically satisfies an expected behavior.
Arguments
| Name | Type | Description |
|---|---|---|
prompt |
str | The original prompt sent to the LLM (used for context/logging) |
expected_behavior |
str | Plain-language description of what the output should do |
model_output |
str | The actual text returned by the LLM |
Returns
{
"score": 0.82,
"passed": true,
"threshold": 0.45
}
compare_outputs
Detect semantic drift between a known-good baseline and a new output. Useful in CI after prompt or model changes.
Arguments
| Name | Type | Description |
|---|---|---|
baseline |
str | The reference / previous LLM output |
candidate |
str | The new LLM output to compare |
Returns
{
"similarity_score": 0.91,
"drift_detected": false,
"interpretation": "Outputs are nearly identical — no drift."
}
list_builtin_behaviors
Returns the catalog of pre-defined behavioral checks available in llm-behave, with method signatures and descriptions.
Returns — list of objects with name, method, and description keys.
Requirements
- Python 3.10+
- No API keys needed
- ~80 MB disk for the sentence-transformers model (downloaded once on first run)
Development
git clone https://github.com/Swanand33/mcp_llm_behave
cd mcp-llm-behave
uv sync
uv run pytest
License
MIT — see LICENSE.
Установить Llm Behave в Claude Desktop, Claude Code, Cursor
unyly install mcp-llm-behaveСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add mcp-llm-behave -- uvx mcp-llm-behaveFAQ
Llm Behave MCP бесплатный?
Да, Llm Behave MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Llm Behave?
Нет, Llm Behave работает без API-ключей и переменных окружения.
Llm Behave — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Llm Behave в Claude Desktop, Claude Code или Cursor?
Открой Llm Behave на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Llm Behave with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
