使用 ClaudeLocalMCP.ts 需要哪些先决条件?
需要安装 Claude 桌面版(开启开发者模式),注册 OpenWeatherMap 并获取免费 API 密钥,以及 Node.js 运行环境。
@chiisen
Basic information
自己為 Claude 寫本地端 MCP Server (TypeScript版) 很簡單,有手就行😁
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
ClaudeLocalMCP.ts 是一个为 Claude 桌面版设计的本地 MCP 服务器示例,通过 OpenWeatherMap API 让 Claude 能查询指定地区的实时天气信息。它演示了如何为 AI 安全地连接外部数据工具,使开发者可以快速为自己的 Claude 配置本地 MCP 服务。
先安装 Claude 桌面版并开启开发者模式,然后在 claude_desktop_config.json 中添加 MCP 服务器配置,指定 Node.js 运行编译后的 JavaScript 文件以及 .env 文件的路径。用户需要在 .env 中填入 OpenWeatherMap 的 API 密钥,并在对话中询问地区天气,Claude 会请求用户确认执行 MCP 服务。
.env 文件管理 API 密钥需要安装 Claude 桌面版(开启开发者模式),注册 OpenWeatherMap 并获取免费 API 密钥,以及 Node.js 运行环境。
前往 openweathermap.org 注册免费账户,然后在账户面板中生成 API 密钥,并将密钥填入项目 `dist` 文件夹内的 `.env` 文件中。
找到 `claude_desktop_config.json`(Windows 路径 `C:\Users\用户名\AppData\Roaming\Claude`),在 `mcpServers` 中添加名为 `weather` 的节点,指定命令为 `node`,参数为编译后的 `index.js` 路径及 `envPath` 变量。
Windows 用户可以到 `C:\Users\用户名\AppData\Roaming\Claude\logs` 目录查看日志,以排查配置或 API 连接问题。
免费 OpenWeatherMap API 有调用次数和频率限制;Claude 需要用户每次对话确认授权 MCP 执行;环境依赖 Node.js 和网络连接。
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

See and control a real Windows PC you own — from any MCP client, locally or remotely. Observe (UIA + screenshots), click/type/drag/scroll, launch apps, owner Live View. BYOH: your machine, your key.
A curated list of references for MLOps
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Open-source MCP to use Blender with any LLM
Comments