Accounting Ledger MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Accounting Ledger MCP ServerCreate a new ledger for my company 'TechStart'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Accounting Ledger Model Context Protocol Server
A Model Context Protocol (MCP) server that provides accounting ledger creation, transaction and reporting capabilities using the MCP Python SDK and Python Accounting library.
Overview
This MCP server enables AI assistants to interact with a double-entry accounting system, allowing for:
Creating accounting entities including the chart of accounts, currencies, and tax codes
Recording various types of transactions (cash sales, cash purchases, supplier invoices, customer bills)
Generating financial reports (profit & loss statements)
Related MCP server: QuickBooks Online MCP Server
📹 Demo Video
Watch the MCP Accounting Ledger Server in action:
This demo shows the complete workflow from setup to creating ledgers, recording transactions, and generating reports using the MCP server with Claude Desktop.
Features
🏢 Entity Management
Create accounting entities with default configuration (companies/organizations)
💰 Transaction Recording
Cash Sales: Record immediate revenue transactions
Cash Purchases: Record immediate expense transactions
Client Invoices: Create receivable transactions
Supplier Bills: Create payable transactions
📊 Financial Reporting
Generate profit & loss statements
Customizable date ranges for reports
🔧 Built-in Tools
Echo tool for testing connectivity
Comprehensive error handling
SQLite database backend
Installation
This project uses UV for dependency management. Make sure you have UV installed on your system.
Prerequisites
Install uv
Setup
Clone the repository: Clone this repository locally and update config.toml with the path to your local project
Create the virtual environment:
uv venvActivate the virtual environment:
source .venv/bin/activateInstall dependencies:
uv sync
Running the Server
Development Mode
To run the server in development mode:
uv run mcp dev server.pyThis will start the server the MCP Inspector which is a useful tool for testing and debugging the MCP server. To access the MCP Inspector navigate to http://localhost:6274.
Testing in Claude Desktop
After installing Claude Desktop add the MCP server to it by running:
uv run mcp install server.pyAfter running this command open Claude Desktop. There will most likely be an error with the MCP server. Open Claude Desktop settings, navigate to Developer, select our MCP Server (My Ledger) and click Edit Config. Open the JSON configuration file and update the command and args values as shown (replacing path_to_server with the path to the server on your local machine).
{
"mcpServers": {
"My Ledger": {
"command": "/path_to_server/.venv/bin/python",
"args": [
"/path_to_server/server.py"
]
}
}
}Now restart Claude Desktop and the MCP server should be working.
Available Tools
Tool | Description | Parameters |
| Test connectivity |
|
| Set up new accounting entity |
|
| Record cash sale transaction |
|
| Record cash purchase transaction |
|
| Create client invoice |
|
| Create supplier bill |
|
| Generate P&L report |
|
Configuration
The server uses a config.toml file for configuration. Key settings include:
Database: SQLite database URL
Account Types: Chart of accounts configuration
Transaction Types: Available transaction types and prefixes
Tax Settings: Default tax codes and rates
Reporting: Report formatting and sections
Database Schema
The system uses the Python Accounting library's database schema, which includes:
Entities: Companies/organizations
Currencies: Supported currencies
Accounts: Chart of accounts with types
Taxes: Tax codes and rates
Transactions: Various transaction types
Line Items: Transaction details
Development
Project Structure
mcpServerDemo/
├── server.py # Main MCP server implementation
├── main.py # Entry point
├── pyproject.toml # UV project configuration
├── config.toml # Accounting system configuration
├── test_accounting.db # SQLite database
└── python_accounting/ # Local Python Accounting libraryAdding New Features
Add new tools to
server.pyusing the@mcp.tool()decoratorUpdate the configuration in
config.tomlif neededTest using the MCP Inspector
Update this README with new tool documentation
Dependencies
mcp[cli]: Model Context Protocol SDK
python-dateutil: Date parsing utilities
sqlalchemy: Database ORM
strenum: String enumerations
toml: Configuration file parsing
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dougdaley/mcpAccountingDemo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server