Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Token-efficient semantic compression for numerical data. 95%+ token reduction.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"semantic-frame": {
"command": "uvx",
"args": [
"semantic-frame"
]
}
}
}在终端中运行这条命令
claude mcp add semantic-frame -- uvx semantic-frame粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"semantic-frame": {
"command": "uvx",
"args": [
"semantic-frame"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"semantic-frame": {
"type": "stdio",
"command": "uvx",
"args": [
"semantic-frame"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 Anarkitty1 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.1)于11个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, topo^alpin
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Avalanche bulletins and mountain weather forecasts for any place in the Alps.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Token-efficient semantic compression for numerical data.
Semantic Frame converts raw numerical data (NumPy, Pandas, Polars) into natural language descriptions optimized for LLM consumption. Instead of sending thousands of data points to an AI agent, send a 50-word semantic summary.
LLMs are terrible at arithmetic. When you send raw data like [100, 102, 99, 101, 500, 100, 98] to GPT-4 or Claude:
Semantic Frame provides deterministic analysis using NumPy, then translates results into token-efficient narratives:
from semantic_frame import describe_series
import pandas as pd
data = pd.Series([100, 102, 99, 101, 500, 100, 98]) print(describe_series(data, context="Server Latency (ms)"))
Output:
The Server Latency (ms) data shows a flat/stationary pattern with stable
variability. 1 anomaly detected at index 4 (value: 500.00). Baseline: 100.00 (range: 98.00-500.00).
Result: 95%+ token reduction, zero hallucination risk.
pip install semantic-frame
Or with uv:
uv add semantic-frame
Semantic Frame is available on the official MCP Registry, enabling direct integration with Claude.
Claude Code CLI:
claude mcp add semantic-frame
Claude Desktop - Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": { "semantic-frame": { "command": "uvx", "args": ["--from", "semantic-frame[mcp]", "semantic-frame-mcp"] } } }
Once configured, Claude can use these tools:
describe_data - Analyze a single data seriesdescribe_batch - Analyze multiple series at oncedescribe_json - Get structured JSON outputfrom semantic_frame import describe_series
import numpy as np
data = np.array([10, 20, 30, 40, 50, 60, 70, 80, 90, 100]) result = describe_series(data, context="Daily Sales") print(result)
from semantic_frame import describe_dataframe
import pandas as pd
df = pd.DataFrame({ 'cpu': [40, 42, 41, 95, 40, 41], 'memory': [60, 61, 60, 60, 61, 60], })
results = describe_dataframe(df, context="Server Metrics") print(results['cpu'].narrative)
result = describe_series(data, output="full")
print(result.trend) # TrendState.RISING_SHARP print(result.volatility) # VolatilityState.MODERATE print(result.anomalies) # [AnomalyInfo(index=4, value=500.0, z_score=4.2)] print(result.compression_ratio) # 0.95
result = describe_series(data, output="json")
np.ndarraypd.Series, pd.DataFramepl.Series, pl.DataFramelist| Feature | Method | Output |
|---|---|---|
| Trend | Linear regression slope | RISING_SHARP, RISING_STEADY, FLAT, FALLING_STEADY, FALLING_SHARP |
| Volatility | Coefficient of variation | COMPRESSED, STABLE, MODERATE, EXPANDING, EXTREME |
| Anomalies | Z-score / IQR adaptive | Index, value, z-score for each outlier |
| Seasonality | Autocorrelation | NONE, WEAK, MODERATE, STRONG |
| Distribution | Skewness + Kurtosis | NORMAL, LEFT_SKEWED, RIGHT_SKEWED, BIMODAL, UNIFORM |
| Step Change | Baseline shift detection | NONE, STEP_UP, STEP_DOWN |
| Data Quality | Missing value % | PRISTINE, GOOD, SPARSE, FRAGMENTED |
from semantic_frame.interfaces import format_for_system_prompt
result = describe_series(data, output="full") prompt = format_for_system_prompt(result)
from semantic_frame.interfaces import format_for_langchain
output = format_for_langchain(result)
from semantic_frame.interfaces import create_agent_context
results = describe_dataframe(df) context = create_agent_context(results)
pip install semantic-frame[anthropic]
import anthropic
from semantic_frame.integrations.anthropic import get_anthropic_tool, handle_tool_call
client = anthropic.Anthropic() tool = get_anthropic_tool()
response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, tools=[tool], messages=[{"role": "user", "content": "Analyze this sales data: [100, 120, 115, 500, 118]"}] )
for block in response.content: if block.type == "tool_use" and block.name == "semantic_analysis": result = handle_tool_call(block.input) print(result)
pip install semantic-frame[langchain]
from semantic_frame.integrations.langchain import get_semantic_tool
tool = get_semantic_tool()
pip install semantic-frame[crewai]
from semantic_frame.integrations.crewai import get_crewai_tool
tool = get_crewai_tool()
pip install semantic-frame[mcp]
Run the MCP server:
mcp run semantic_frame.integrations.mcp:mcp
Exposes describe_data tool for MCP clients like:
Add Semantic Frame as a native tool in Claude Code:
# Install MCP dependencies
pip install semantic-frame[mcp]
claude mcp add semantic-frame -- uv run --project /path/to/semantic-frame mcp run /path/to/semantic-frame/semantic_frame/integrations/mcp.py
claude mcp list
Once configured, ask Claude to analyze data and it will use the describe_data tool automatically.
Semantic Frame supports Anthropic's Advanced Tool Use features for efficient tool orchestration in complex agent workflows.
| Feature | Benefit | API |
|---|---|---|
| Input Examples | +18% parameter accuracy | Included by default |
| Tool Search | 1000+ tools without context bloat | defer_loading=True |
| Programmatic Calling | Batch analysis via code execution | allowed_callers=["code_execution"] |
import anthropic
from semantic_frame.integrations.anthropic import get_advanced_tool, handle_tool_call
client = anthropic.Anthropic() tool = get_advanced_tool() # All advanced features enabled
response = client.beta.messages.create( betas=["advanced-tool-use-2025-11-20"], model="claude-sonnet-4-5-20250929", max_tokens=4096, tools=[ {"type": "tool_search_tool_regex_20251119", "name": "tool_search"}, {"type": "code_execution_20250825", "name": "code_execution"}, tool, ], messages=[{"role": "user", "content": "Analyze all columns in this dataset..."}] )
from semantic_frame.integrations.anthropic import (
get_anthropic_tool, # Standard (includes examples) get_tool_for_discovery, # For Tool Search get_tool_for_batch_processing, # For code execution get_advanced_tool, # All features enabled )
from semantic_frame.integrations.mcp import describe_batch
result = describe_batch( datasets='{"cpu": [45, 47, 95, 44], "memory": [60, 61, 60, 61]}', )
See docs/advanced-tool-use.md for complete documentation.
btc_prices = pd.Series(hourly_btc_prices)
insight = describe_series(btc_prices, context="BTC/USD Hourly")
cpu_data = pd.Series(cpu_readings)
insight = describe_series(cpu_data, context="CPU Usage %")
sales = pd.Series(daily_sales)
insight = describe_series(sales, context="Daily Revenue")
temps = pl.Series("temperature", sensor_readings)
insight = describe_series(temps, context="Machine Temperature (C)")
Specialized semantic analysis for trading agents, portfolio managers, and financial applications.
| Tool | Description |
|---|---|
describe_drawdown | Equity curve drawdown analysis with severity |
describe_trading_performance | Win rate, Sharpe, profit factor metrics |
describe_rankings | Multi-agent/strategy comparison |
describe_anomalies | Enhanced anomaly detection with PnL context |
describe_windows | Multi-timeframe trend alignment |
describe_regime | Market regime detection (bull/bear/sideways) |
describe_allocation | Portfolio allocation suggestions ⚠️ |
from semantic_frame.trading import (
describe_trading_performance, describe_drawdown, describe_regime, describe_allocation, )
pnl = [100, -50, 75, -25, 150, -30, 80] result = describe_trading_performance(pnl, context="My Bot") print(result.narrative)
equity = [10000, 10500, 10200, 9800, 9500, 10100] result = describe_drawdown(equity, context="Strategy") print(result.narrative)
returns = [0.01, 0.015, 0.02, -0.01, 0.025, 0.018] # Daily returns result = describe_regime(returns, context="BTC") print(result.narrative)
assets = {"BTC": [40000, 42000, 44000], "ETH": [2500, 2650, 2800]} result = describe_allocation(assets, method="risk_parity") print(result.narrative) #
只显示了开头部分;其余内容请在仓库中阅读