MCP HubMCP Hub
fireproof-storage

mcp-database-server

by: fireproof-storage

Store and load JSON documents from LLM tool use

15created 16/12/2024
Visit
JSON
LLM

📌Overview

Purpose: The framework serves to integrate code and data into AI systems using a Fireproof database within a Model Context Protocol server.

Overview: This demo server showcases the functionality of a JSON document store that supports basic CRUD operations, enabling users to manage and query documents efficiently. It utilizes the Model Context Protocol to facilitate interaction with AI platforms like Claude Desktop.

Key Features:

  • CRUD Operations: Allows users to Create, Read, Update, and Delete JSON documents, providing a comprehensive management interface for document handling.

  • Sortable Queries: Offers the ability to query documents sorted by any field, enhancing data retrieval and organization capabilities for users.


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, which can be used for integrating code and data into A.I. systems such as Claude Desktop.

This demo server provides a basic JSON document store with CRUD operations (Create, Read, Update, Delete) and allows querying documents sorted by any field.

Installation

Install dependencies:

npm install
npm build

Running the Server

To use with Claude Desktop, add the server configuration:

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

Example configuration:

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

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. It is recommended to use the MCP Inspector, which is available as a package script:

npm run inspector

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