模型上下文协议服务器

一个快速的MCP服务器,使Claude能够抓取网站、处理文档(PDF、DOCX、TXT)并管理Excel数据库。

  • by DuncanDam
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 DuncanDam/my-mcp

使用说明

我的MCP

一个快速的MCP(模型上下文协议)服务器,使Claude能够抓取网站、处理文档(PDF、DOCX、TXT)和管理Excel数据库。

🚀 安装

一个命令即可安装所有内容:

curl -fsSL https://raw.githubusercontent.com/DuncanDam/my-mcp/main/install.sh | bash

然后运行:

my-mcp setup    # Setup configuration
my-mcp config   # Configure Claude Desktop
# Restart Claude Desktop completely (MCP server starts automatically)

🔄 更新

自动更新(推荐):

my-mcp update

手动更新:

curl -fsSL https://raw.githubusercontent.com/DuncanDam/my-mcp/main/install.sh | bash

🛠️ 主要工具

工作流(推荐):

  • analyze_content_workflow -完整的内容分析流程
  • scrape_and_save_content -与Excel集成的Web抓取

个人工具:

  • scrape_webpage -从URL中提取内容
  • read_document -处理PDF、DOCX、TXT、RTF文件
  • add_content_entry -将内容保存到Excel数据库
  • search_similar_content -查找相关内容
  • test_connection -测试MCP连接

📋 命令

命令 描述
my-mcp setup 安装依赖项和设置
my-mcp config 配置Claude桌面
my-mcp start 启动服务器(仅用于开发/测试)
my-mcp test 测试服务器连接
my-mcp dev 开发模式
my-mcp help 显示所有命令

💡 快速示例

Web内容:

Use analyze_content_workflow to process https://example.com with topic "News"

文件:

Use analyze_content_workflow to process /path/to/document.pdf with topic "Research"

截图: 与克劳德分享图片,然后:

Use analyze_content_workflow with the text you extracted, sourceDescription "Meeting notes", and topic "Business"

🔧 手动安装(备份)

如果脚本失败:

git clone https://github.com/DuncanDam/my-mcp.git
cd my-mcp
npm install && npm run build && npm install -g .
my-mcp setup && my-mcp config
# Restart Claude Desktop

🆘 故障排除

  • 测试连接: my-mcp test
  • 检查日志: tail -f ~/Library/Logs/Claude/mcp-server-*.log
  • 重新安装:再次运行安装命令
  • 权限问题: sudo npm install -g . (macOS/Linux)

✅ 成功检查

您的系统在以下情况下工作:

  • my-mcp test 显示“✅ MCP服务器正在响应“
  • 克劳德可以打电话 test_connection
  • Claude中的Web抓取和文档处理工作

准备使用!重新启动Claude Desktop后,在Claude Desktop中测试连接。