mcp-database-server
模型上下文协议和防火演示: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 toolsdelete_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
Scored across 4 tools
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.
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.
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.
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
Related MCP Connectors
Immutable event logging and audit trail for agent transactions
A real-time, multiplayer filesystem for agents and humans: shared files, live edits, history.
Provenance-first database for teams and agents: every value carries sources, rules and coverage.
Governed local-first memory and continuity for AI agents — signed receipts, optional hosted lane.
Related MCP Servers
- AlicenseAqualityDmaintenancePrimary purpose is to maintain a self verifying ledger that requires no consesus. Additional features include support for evm compatible and other block chains.61MIT
- AlicenseAqualityBmaintenanceLocal-first persistent memory MCP: shared SQLite key/value store, searchable, TTL-aware and secret-safe.15111 npm2MIT
- AlicenseNot gradedqualityBmaintenanceLocal-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.1Apache 2.0
- AlicenseBqualityBmaintenanceLocal-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.642Apache 2.0