MCP.so
登录

ClaudeLocalMCP.js

@chiisen

关于 ClaudeLocalMCP.js

自己為 Claude 寫本地端 MCP Server (JavaScript版) 很簡單,有手就行😁

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

发布者

chiisen

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is ClaudeLocalMCP.js?

ClaudeLocalMCP.js is a JavaScript‑based local MCP server for Claude, enabling the AI to query weather information for a specified region. It integrates with the OpenWeatherMap API and is designed for developers and Claude users who want to give the AI safe access to external tools and data.

How to use ClaudeLocalMCP.js?

Configure the MCP server in Claude Desktop: enable Developer mode, then edit claude_desktop_config.json to point to the server’s index.js file and set the envPath to your .env file containing your OpenWeatherMap API key. After that, ask Claude about weather for a specific city (e.g., “台中天氣如何?”) and allow the MCP service when prompted.

Key features of ClaudeLocalMCP.js

  • Queries weather data via the OpenWeatherMap API.
  • Simple setup with a .env file for API key storage.
  • Runs locally, enhancing data privacy and control.
  • Provides execution logs in the Claude configuration directory.
  • Demonstrates how MCP turns AI from advisor to executor.

Use cases of ClaudeLocalMCP.js

  • Asking Claude for real‑time weather in any supported city.
  • Learning how to build and test a minimal MCP server with JavaScript.
  • Extending Claude’s capability to fetch live external data securely.

FAQ from ClaudeLocalMCP.js

How do I get an API key for the weather service?

Register for a free account at OpenWeatherMap and obtain your API key.

Where do I place the API key?

Create a .env file in the project root and add OPENWEATHERMAP_API_KEY=your_actual_api_key_here.

How do I configure Claude to use this server?

In Claude Desktop’s claude_desktop_config.json (located in C:\Users\<username>\AppData\Roaming\Claude on Windows), add the server under mcpServers with the command node and arguments pointing to your index.js file and the envPath parameter.

How can I check if the MCP server is running?

After configuration, look for the MCP server icon in Claude Desktop. You can also inspect logs in the Claude configuration directory.

Does this require Claude Desktop?

Yes, Claude Desktop is required to configure and use this MCP server.

评论

其他 分类下的更多 MCP 服务器