ChargeNow MCP 服务器借助 ChargeNow API,为用户提供电动汽车充电站信息。支持 MCP 协议的 AI 助手(如 Claude)可通过该服务器搜索指定地址附近的电动汽车充电站,极大提升了查找充电站的便利性。
配置好服务器后,你就能在 Claude 中使用充电站搜索功能啦。比如提出以下问题:
npm install
npm run build
该服务器需要地理编码服务的 API 密钥,可通过以下两种方式进行配置:
设置GEOCODE_API_KEY环境变量:
export GEOCODE_API_KEY="your_api_key_here"
当与 MCP 客户端(如 Claude)一起使用时,在您的 MCP 配置中进行如下设置:
{
"mcpServers": {
"chargenow": {
"command": "node",
"args": [
"/path/to/chargenow-mcp/build/index.js"
],
"config": {
"geocodeApiKey": "your_api_key_here"
}
}
}
}
请将/path/to/chargenow-mcp/build/index.js替换为构建文件的实际绝对路径。
要在 Claude Desktop 中使用此服务器,需将以下内容添加到claude_desktop_config.json:
{
"mcpServers": {
"chargenow": {
"command": "node",
"args": [
"/path/to/chargenow-mcp/build/index.js"
],
"config": {
"geocodeApiKey": "your_api_key_here"
}
}
}
}
文件位置如下:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json此 MCP 服务器提供了find_available_chargepoints工具,用于查找指定地址附近的可用电动汽车充电点。
{
"name": "find_available_chargepoints",
"parameters": {
"address": "Bautzener Str Berlin"
}
}
示例响应:
柏林Bautzener Str附近可用电充站:
摘要:
• 5个可用的充电点
• 2个充电点正在使用(充电中)
• 1个充电点离线
详细位置信息:
📍 柏林Mitte区充电站(0.89 公里外)
地址:Brückenstraße 5, 10179 Berlin
运营商:Allego
支付方式:信用卡、RFID
营业时间:全天24小时
插头类型:CCS(150kW)、CHAdeMO(50kW)、Type 2(22kW)
状态:
• 2个可用点位
• 1个正在充电
最后更新时间:14:32:45
[...其他充电站...]