Skip to main content
Glama

模型上下文协议和防火演示:JSON文档服务器

这是一个如何在模型上下文协议服务器(用于将代码和数据插入 AI 系统,如Claude Desktop )中使用Fireproof数据库的简单示例。

该演示服务器实现了一个基本的 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 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

Available Tools

4 tools
delete_json_docC

Delete a JSON document by ID

Inputs: id (required).

load_json_docC

Load a JSON document by ID

Inputs: id (required).

query_json_docsC

Query JSON documents sorted by a field

Inputs: sort_field (required).

save_json_docC

Save a JSON document

Inputs: doc (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: load retrieves, save creates/updates, delete removes, and query searches documents. The descriptions make it easy for an agent to select the right tool for each operation without confusion.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (e.g., load_json_doc, save_json_doc) with snake_case throughout. The naming is predictable and readable, making it easy to understand each tool's function at a glance.

    Tool Count5/5

    With 4 tools, this server is well-scoped for basic JSON document operations. Each tool earns its place by covering essential CRUD-like functions (load, save, delete, query), which is appropriate for a database server focused on JSON documents.

    Completeness5/5

    The tool set provides complete coverage for the domain of JSON document management: it includes create/update (save), read (load), delete, and query operations. There are no obvious gaps, and agents can perform full lifecycle tasks without dead ends.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Primary purpose is to maintain a self verifying ledger that requires no consesus. Additional features include support for evm compatible and other block chains.
      6
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Local-first persistent memory MCP: shared SQLite key/value store, searchable, TTL-aware and secret-safe.
      15
      111 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Local-first MCP server providing a shared, AES-256-GCM encrypted SQLite ledger of structured user state (stack, projects, preferences) that any MCP-aware tool can read/write, with user-held keys and optional zero-knowledge sync.
      1
      Apache 2.0
    • A
      license
      B
      quality
      B
      maintenance
      Local-first, git-synced memory and system of records for AI agents: a signed append-only event log projected into graph, vector and full-text indexes, with hybrid recall and provenance on every fact.
      64
      2
      Apache 2.0