Open-Ledger-MCP-Server

Official

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

OpenLedger MCP 服务器

OpenLedger API 的模型上下文协议 (MCP) 服务器实现。该服务器根据 MCP 规范为 AI 模型提供结构化上下文。

什么是 OpenLedger?

OpenLedger是一个嵌入式会计 API,可将客户的财务数据整合到您的平台中,从而创建单一数据来源。它还可以通过 API 全面管理账本,非常适合 AI 代理。该 MCP 服务器允许像 Claude 这样的 AI 助手以结构化的方式与 OpenLedger API 进行交互。

什么是 MCP?

模型上下文协议 (MCP) 是为 AI 模型提供上下文的标准。它允许应用程序和 AI 模型之间进行结构化数据交换,从而实现更有效、更具情境性的 AI 交互。

请访问modelcontextprotocol.io了解更多信息。

特征

  • 符合 MCP 标准的服务器实现
  • OpenLedger API集成
  • 金融数据的情境感知人工智能交互
  • 支持交易、公司和其他金融实体

快速入门

选项 1:本地安装

# Clone the repository git clone https://github.com/yourusername/Open-Ledger-MCP-Server.git cd Open-Ledger-MCP-Server # Install dependencies bun install # Set up environment variables cp .env.example .env # Edit .env with your configuration # Start the server bun start

选项 2:使用 Docker

# Clone the repository git clone https://github.com/yourusername/Open-Ledger-MCP-Server.git cd Open-Ledger-MCP-Server # Build and run with Docker Compose docker-compose up --build # Or use the provided script ./docker-run.sh

与 Claude 一起使用

要将此 MCP 服务器与 Claude 一起使用,请将其添加到您的 Claude 配置中:

{ "mcpServers": { "openledger": { "url": "http://localhost:8080/mcp" } } }

有关如何将此服务器与 Claude 或其他支持模型上下文协议的 AI 助手一起使用的详细说明,请参阅MCP_USAGE.md

可用资源

OpenLedger MCP 服务器提供对以下资源的访问:

  1. openledger://transactions - 访问和管理金融交易
  2. openledger://companies - 访问和管理公司信息
  3. openledger://categories - 访问和管理交易类别
  4. openledger://reports - 生成财务报告

发展

# Run in development mode with hot reloading bun dev # Run tests bun test # Build for production bun run build

项目结构

. ├── src/ │ ├── controllers/ # Request handlers │ ├── routes/ # API routes │ ├── utils/ # Utility functions │ └── index.ts # Main application entry point ├── .env.example # Example environment variables ├── docker-compose.yml # Docker Compose configuration ├── Dockerfile # Docker configuration ├── MCP_USAGE.md # Guide for using with Claude ├── package.json # Project dependencies ├── README.md # This file ├── run.sh # Script to run locally └── tsconfig.json # TypeScript configuration

脚本

  • run.sh - 用于安装依赖项并在本地启动服务器的 shell 脚本
  • docker-run.sh - 用于在 Docker 容器中构建和运行服务器的 shell 脚本

执照

有关详细信息,请参阅LICENSE文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

OpenLedger API 的模型上下文协议 (MCP) 服务器实现。该服务器根据 MCP 规范为 AI 模型提供结构化上下文。

  1. What is OpenLedger?
    1. What is MCP?
      1. Features
        1. Quick Start
          1. Option 1: Local Installation
          2. Option 2: Using Docker
        2. Using with Claude
          1. Available Resources
            1. Development
              1. Project Structure
                1. Scripts
                  1. License
                    ID: fyxyh3fpk8