Back to MCP directory
publicPublicdnsLocal runtime

iggy-mcp-server

一个基于TypeScript的MCP服务器,实现了简单的笔记系统,提供笔记资源管理、创建工具和摘要生成提示功能。

article

README

🚀 Iggy-MCP-Server MCP 服务器

Iggy-MCP-Server 是一个基于 TypeScript 构建的 MCP 服务器,它实现了一个简单却实用的笔记系统。此服务器通过资源、工具和提示等功能,生动地演示了核心的 MCP 概念,为用户提供了便捷的笔记管理体验。

🚀 快速开始

Iggy-MCP-Server 是一个基于 TypeScript 的 MCP 服务器,实现了一个简单的笔记系统。它通过资源、工具和提示等功能,演示了核心的 MCP 概念。

✨ 主要特性

资源

  • 可列出并通过 note:// URI 访问笔记,方便快捷定位所需笔记。
  • 每个笔记都配备标题、内容和元数据,全面记录笔记信息。
  • 采用 plain text MIME 类型进行简单的内容访问,确保数据获取的简洁性。

工具

  • create_note:用于创建新文本笔记。标题和内容为必填参数,创建完成后将笔记存储在服务器状态中,便于后续管理。

提示

  • summarize_notes:生成所有存储笔记的摘要。该功能会包括所有笔记内容作为嵌入资源,并返回结构化的提示以供 LLM 进行总结,帮助用户快速了解笔记全貌。

📦 安装指南

开发环境依赖安装

安装项目所需的依赖:

npm install

服务器构建

构建服务器:

npm run build

开发模式

带有自动重建功能的开发模式:

npm run watch

与 Claude Desktop 集成安装

要与 Claude Desktop 一起使用,请添加服务器配置:

  • 在 MacOS 上:配置文件路径为 ~/Library/Application Support/Claude/claude_desktop_config.json
  • 在 Windows 上:配置文件路径为 %APPDATA%/Claude/claude_desktop_config.json

配置文件内容如下:

{
  "mcpServers": {
    "iggy-mcp-server": {
      "command": "/path/to/iggy-mcp-server/build/index.js"
    }
  }
}

调试说明

由于 MCP 服务器通过 stdio 进行通信,调试可能会很困难。我们建议使用 MCP Inspector,它作为包脚本可用:

npm run inspector

Inspector 将提供一个访问浏览器中的调试工具的 URL,方便开发者进行调试工作。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client