battery-analyzer-mcp
MCP server for Dunn and GITT battery analysis, enabling calculation of kinetic parameters and diffusion coefficients from cyclic voltammetry and titration data.
README
Battery Analyzer MCP Server
An MCP (Model Context Protocol) server that exposes Dunn and GITT battery analysis calculations to AI assistants like Cursor and Claude Desktop.
This package is fully standalone — calculation code is copied here and does not import from battery-analyzer/.
Tools
| Tool | Description |
|---|---|
list_battery_methods |
List available methods and expected Excel input formats |
list_data_files_tool |
List .xlsx files in the data folder |
calculate_dunn |
Run Dunn method (K1, K2, b values) on cyclic voltammetry data |
calculate_gitt |
Run GITT method (diffusion coefficients) on titration data |
Data folder
Place input Excel files in:
battery-analyzer-mcp/data/
Tools take only the file name (not a full path), for example dunn_method_data.xlsx. The .xlsx extension is optional.
Results are saved in the same data/ folder next to the input file.
Override the data folder with the BATTERY_ANALYZER_DATA_DIR environment variable if needed.
Input file formats
Dunn method
No header row in the Excel file:
| Col 1+ | ||
|---|---|---|
| Row 0 | Scan rates (V/s) | |
| Row 1 | (unused) | |
| Row 2+ | Voltage (V) in col 0 | Current (A) per scan rate |
GITT method
- Skip first
skip_rowsmetadata rows (default: 6) - Column 0: time (s)
- Column 1: voltage (V)
Install
Requires Python 3.10+ and uv:
cd battery-analyzer-mcp
uv sync
Run locally(if needed in case of local mcp client)
uv run battery-analyzer-mcp
Or with MCP Inspector for development:
uv run mcp dev src/battery_analyzer_mcp/server.py
Cursor MCP configuration
Claude Desktop configuration
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"battery-analyzer": {
"command": "uv",
"args": [
"--directory",
"<absolute path to your directory>/battery-analyzer-mcp",
"run",
"battery-analyzer-mcp"
]
}
}
}
Restart Claude Desktop after saving.
Troubleshooting
Failed to spawn process: No such file or directory
Claude Desktop / Cursor could not find the command binary. GUI apps use a limited PATH and usually cannot resolve bare uv. Fix:
- Run
cd battery-analyzer-mcp && uv syncto create.venv/ - Use the full path to
.venv/bin/battery-analyzer-mcpas thecommand(see Option A above) - Or use the full path to
uv(e.g./Users/pankaj/anaconda3/bin/uv) instead of just"uv"
Example tool calls
List methods:
list_battery_methods()
List available input files:
list_data_files_tool()
Dunn calculation:
calculate_dunn(file_name="dunn_method_data.xlsx")
GITT calculation:
calculate_gitt(
file_name="GITT_67.xlsx",
skip_rows=6,
L=1e-4,
tau=1800
)
Output
Each calculation tool returns a compact JSON response (under Claude Desktop's 1 MB MCP limit):
results_path— path to the saved Excel file (*_dunn_results.xlsxor*_gitt_results.xlsx)message— status messagepreview— first rows of core results (Dunn: Voltage, K1, K2, b only)plots— plot titles and series metadata only (no x/y coordinates)summary— method-specific metadatanote— explains that full data is in the Excel file
Full numeric results and all columns are always written to results_path. Open that Excel file for complete data and plotting.
Results Excel files are written to the data/ folder next to the input file.
Dependencies
mcp[cli]— MCP Python SDKpandas,numpy,scipy,openpyxl— calculation and Excel I/O
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。