Back to MCP directory
publicPublicdnsLocal runtime

mcp-database-server

基于Fireproof数据库的JSON文档存储MCP服务

article

README

🚀 模型上下文协议和耐火测试演示:JSON 文档服务器

本项目是一个简单示例,借助 Fireproof 数据库,将其应用于 模型上下文协议 服务器。该服务器可把代码和数据集成到 A.I. 系统,比如 Claude Desktop。此演示服务器实现了基础的 JSON 文档存储功能,支持 CRUD 操作(创建、读取、更新、删除),还能依据任意字段对文档进行查询排序。

🚀 快速开始

📦 安装指南

安装依赖项:

npm install
npm build

💻 使用示例

运行服务器

要与 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 服务器通过标准输入输出进行通信,调试可能具有挑战性。我们推荐使用 模型上下文协议检查器,它可以通过 npm 脚本运行:

npm run 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