Custom MCP Server

Custom MCP Server

site icon
2025.03.30 0
JavaScriptAI助手工具集成文件操作网页搜索本地搜索GitHub集成逐步解决问题文件下载搜索工具开发效率内容生成
Custom MCP Server 是一个自定义的机器对话协议(MCP)服务器,集成了多种工具以增强AI助手的功能。它提供了包括Brave搜索、安全文件系统操作、GitHub集成、顺序思考和文件下载等多种功能,旨在为AI助手提供更强大的工具支持。
View on GitHub

Overview

基本能力

产品定位

Custom MCP Server 是一个为AI助手提供多种工具集成的MCP服务器,旨在扩展AI助手的功能范围,使其能够执行更复杂的任务。

核心功能

  • Brave Search:提供网页和本地搜索能力。
  • Secure Filesystem:支持文件操作,包括读写、编辑、创建目录等,并具备安全控制。
  • GitHub Integration:支持仓库和代码管理,包括创建仓库、搜索仓库、读取文件内容等。
  • Sequential Thinking:提供逐步解决问题的功能。
  • Download Utility:支持从互联网下载文件。

适用场景

  • AI助手需要执行复杂的文件操作任务时。
  • AI助手需要进行网页或本地搜索时。
  • AI助手需要与GitHub进行交互时。
  • AI助手需要逐步解决复杂问题时。
  • AI助手需要下载文件时。

工具列表

  • Brave Searchbrave_web_search(网页搜索)、brave_local_search(本地搜索)。
  • Filesystem Operationsread_filewrite_fileedit_filecreate_directorylist_directory等。
  • GitHub Integrationcreate_repositorysearch_repositoriesget_file_contentspush_files等。
  • Sequential Thinkingsequentialthinking
  • Download Utilitydownload_filedownload_multiple_files

常见问题解答

  • 如何添加新功能?
  • functions目录中创建处理程序。
  • 将函数定义添加到mcp-schema.json
  • 更新index.js中的路由。

使用教程

使用依赖

# Clone the repository
git clone https://github.com/degenhero/custom-mcp-server.git
cd custom-mcp-server

# Install dependencies and set up environment
npm run install:all

安装教程

# Start both servers
npm run start:both

调试方式

curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -d '{"functionName": "brave_web_search", "parameters": {"query": "test query"}}'

许可证

该项目遵循 MIT 开源许可条款。