MCP ExplorerExplorer

Model Context Protocol and Fireproof Demo: JSON Document Server

@fireproof-storageon a month ago
19 MIT
FreeOfficial
Databases
#fireproof#database#MCP#Model Context Protocol#JSON#document store
Immutable ledger database with live synchronization

Overview

What is Model Context Protocol and Fireproof Demo: JSON Document Server

This demo server is an implementation of a JSON document store that utilizes the Fireproof database within the Model Context Protocol (MCP) framework. It provides basic functionalities for handling JSON documents, which facilitates the integration of code and data into AI systems.

Use cases

The server can be used for various applications that require document storage and management, such as content management systems, data analysis tools, and AI training data repositories. It allows users to perform typical CRUD operations, making it suitable for dynamic data-driven applications.

How to use

To set up the server, first install the necessary dependencies by running ‘npm install’ and ‘npm build’. Then, configure your Claude Desktop by adding the server settings in the appropriate config file, specifying the command to run the server. Finally, start the server and utilize the CRUD operations and querying features.

Key features

Key features of the server include CRUD operations for creating, reading, updating, and deleting JSON documents, the ability to sort documents based on any specified field, and an easy-to-use setup for integration with Claude Desktop. It also supports debugging through the MCP Inspector tool.

Where to use

This server can be used in environments where interaction with AI systems is required, such as in desktop applications utilizing Claude, as well as in web applications and backend services where JSON document storage and retrieval is necessary.

Content

Model Context Protocol and Fireproof Demo: JSON Document Server

This is a simple example of how to use a Fireproof database in a Model Context Protocol server (used for plugging code and data into A.I. systems such as Claude Desktop).

This demo server implements a basic JSON document store with CRUD operations (Create, Read, Update, Delete) and the ability to query documents sorted by any field.

Installation

Install dependencies:

npm install
npm build

Running the Server

To use with Claude Desktop, add the server config:

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

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

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers