Skip to main content

Battery MCP Server

A Model Context Protocol server that provides battery materials validation capabilities. This server enables LLMs to verify invented bettery materials are novel and valid or not.

[!CAUTION] This server can access local/internal IP addresses and may represent a security risk. Exercise caution when using this MCP server to ensure this does not expose any sensitive data.

Available Tools

search_material

Searches and returns relevant battery materials from the database.

Parameters:

  • formula (string, required): Formula query for battery materials (e.g., "LiCoO2")
  • n (integer, optional): Number of results to return (default: 5, min: 1, max: 100)

verify_input_material

Validates whether a material exists in the database.

Parameters:

  • original_material (string, required): Material formula to validate (e.g., "LiFePO4")

battery_material_validation

Parses and validates battery materials from a query, comparing them against a reference material.

Parameters:

  • original_material (string, required): Reference battery material (e.g., "LiCoO2")
  • query (string, required): Comma-separated list of proposed materials (e.g., "Li2B4O7, Li1.06Ti2O4")

Installation

This MCP server requires API key from materials project, you can get api key and use it with env variable MP_API_KEY

export MP_API_KEY=

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run battery-mcp.

Using PIP

Alternatively you can install battery-mcp via pip:

pip install battery-mcp

After installation, you can run it as a script using:

python -m battery-mcp

Running with streamable-http

You can also deploy mcp as http server with streamable-http transport protocol

python -m battery-mcp --transport http --http-host 0.0.0.0 --http-port 8080

or using uvx

uvx battery-mcp --transport http --http-host 0.0.0.0 --http-port 8080

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": ["battery-mcp"]
    }
  }
}
Using pip installation
{
  "mcpServers": {
    "fetch": {
      "command": "python",
      "args": ["-m", "battery-mcp"]
    }
  }
}

License

battery-mcp is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Metadata

Release files for battery-mcp 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for battery-mcp 0.0.3
File Size Uploaded
battery_mcp-0.0.3.tar.gz 556.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for battery-mcp 0.0.3
File Interpreter ABI Platform
battery_mcp-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 743.5 kB

Release files / battery_mcp-0.0.3.tar.gz

Download URL battery_mcp-0.0.3.tar.gz
Size 556.3 kB
Tags Source
SHA-256 checksum
How to use checksums
586bee36af4c8803ab9934cde94aed57516d3fae759da2d2dbd9e7dbbe408c44
BLAKE2b-256 checksum
How to use checksums
a7251ae6d1f33d3c6f530b92708d598526400bbb69f2b1144cb75a8191fd7581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release files / battery_mcp-0.0.3-py3-none-any.whl

Download URL battery_mcp-0.0.3-py3-none-any.whl
Size 187.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44f5d1fe498782d798789dee8fedc15f8ff9d703cda0ea15d07550f1a468b78c
BLAKE2b-256 checksum
How to use checksums
a14cf782efa98f5e25dbc03b4180fd3d583a646d6f635d95edc2026bd52daf91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page