Model Context Protocol and Fireproof Demo: JSON Document Server

Model Context Protocol and Fireproof Demo: JSON Document Server

从LLM工具使用中存储和加载JSON文档。

简介

这是一个模型上下文协议(MCP)服务器,利用Fireproof数据库实现JSON文档存储。通过此服务,AI系统(如Claude Desktop)可以执行CRUD操作并按任意字段查询文档。

安装与设置

# 安装依赖并构建
npm install
npm build

配置Claude Desktop

添加服务器配置到Claude Desktop配置文件:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

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

调试

使用MCP Inspector进行调试:

npm run inspector

这将提供一个浏览器访问URL,通过该URL您可以使用调试工具。

主要功能

  • 创建、读取、更新和删除JSON文档
  • 按任意字段查询和排序文档
  • 与Claude Desktop等AI系统无缝集成

通过这个服务器,LLM工具可以轻松地存储和检索JSON数据,增强AI系统的数据管理能力。