MCP Pennylane
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Pennylane - Model Context Protocol Server for Pennylane Accounting
A comprehensive MCP (Model Context Protocol) server that enables LLMs to interact with Pennylane accounting software through tools, resources, and prompts.
Features
🛠️ 85 Tools - Perform actions in Pennylane
Accounting: Journals, ledger entries, trial balance, fiscal years
Invoicing: Create, send, and manage customer/supplier invoices
Banking: Transaction reconciliation and categorization
Analytics: Categories and analytical reporting
File Management: Document attachments and uploads
📊 7 Resources - Access structured data
Company information and settings
Chart of accounts with smart grouping
Customer and product catalogs
Recent invoices and transactions
Analytics categories hierarchy
đź’¬ 14 Prompts - Guided workflows
Invoice creation and processing
Transaction recording and reconciliation
Financial analysis and reporting
Period closing procedures
Cash flow forecasting
Related MCP server: @cynco/mcp
Installation
Clone the repository:
git clone https://github.com/StudioCatapulte/mcp-pennylane-company.git
cd mcp-pennylane-companyCreate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
# For production use:
pip install -r requirements.txt
# For development (includes testing and linting tools):
pip install -r requirements-dev.txt
# For exact reproducible environment:
pip install -r requirements-lock.txtConfigure environment:
cp .env.example .env
# Edit .env with your Pennylane API credentialsConfiguration
API Key Authentication
PENNYLANE_API_KEY=your_api_key_here
PENNYLANE_BASE_URL=https://app.pennylane.com/api/external/v2OAuth Authentication (Advanced)
USE_OAUTH=true
OAUTH_CLIENT_ID=your_client_id
OAUTH_CLIENT_SECRET=your_client_secret
OAUTH_REDIRECT_URI=http://localhost:8000/callbackUsage with Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"pennylane": {
"command": "python",
"args": ["/path/to/mcp-pennylane-company/src/server.py"],
"env": {
"PENNYLANE_API_KEY": "your_api_key_here"
}
}
}
}Transport Options
The Pennylane MCP server supports multiple transport protocols:
STDIO Transport (Default)
Best for local tools and Claude Desktop integration:
# Run with default STDIO transport
python src/server.py
# Or explicitly specify STDIO
python src/server.py --transport stdioStreamable HTTP Transport
Recommended for web deployments and remote access:
# Run with Streamable HTTP on default port 8000
python src/server.py --transport streamable-http
# Custom configuration
python src/server.py --transport streamable-http --host 0.0.0.0 --port 9000
# With debug logging
python src/server.py --transport streamable-http --log-level debugFeatures:
Single endpoint for all communication (
/mcp)Health check endpoint at
/healthBi-directional communication
Automatic connection upgrades for long-running tasks
Using the HTTP Client
from fastmcp import Client
# Connect to HTTP server
async with Client("http://localhost:8000/mcp") as client:
# Call tools
result = await client.call_tool("pennylane_customers_list", {"limit": 10})
# Read resources
data = await client.read_resource("pennylane://company/info")See examples/http_client_example.py for a complete example.
Using with FastMCP CLI
# Run with CLI (overrides any transport in code)
fastmcp run src/server.py --transport streamable-http --port 9000
# Development mode with inspector
fastmcp dev src/server.pyExample Workflows
Creating an Invoice
1. Check customer exists: Use resource pennylane://customers/recent/10
2. Get products: Use resource pennylane://products/catalog/20
3. Get guidance: Use prompt create_invoice_prompt
4. Create invoice: Use tool pennylane_invoices_create
5. Send invoice: Use tool pennylane_invoices_send_emailRecording a Transaction
1. Get guidance: Use prompt record_transaction_prompt
2. View accounts: Use resource pennylane://chart_of_accounts/all
3. Select journal: Use resource pennylane://journals
4. Create entry: Use tool pennylane_ledger_entries_create
5. Categorize: Use tool pennylane_ledger_entry_lines_categorizeFinancial Analysis
1. Set parameters: Use prompt analyze_finances_prompt
2. Get company info: Use resource pennylane://company/info
3. View invoices: Use resource pennylane://invoices/recent/customer/50
4. Generate report: Use prompt generate_report_prompt
5. Export data: Use tool pennylane_export_analytical_ledger_createResource Examples
Company Information
pennylane://company/info
Returns: Company settings, fiscal years, currency, countryChart of Accounts
pennylane://chart_of_accounts/411 # Customer accounts only
pennylane://chart_of_accounts/all # All accounts grouped by typeRecent Data
pennylane://customers/recent/20 # Last 20 customers
pennylane://invoices/recent/customer/10 # Last 10 customer invoices
pennylane://products/catalog/50 # 50 products from catalogPrompt Examples
Invoice Creation
create_invoice_prompt(
customer_info="ABC Corp, VAT: FR12345678901",
products_services="5 hours consulting at 150€/hour",
invoice_type="standard",
special_requirements="Net 30 payment terms"
)Transaction Recording
record_transaction_prompt(
transaction_type="sale",
amount=1500.00,
description="Consulting services - Project X",
date="2024-01-15"
)Financial Analysis
analyze_finances_prompt(
analysis_period="2024-Q1",
focus_areas=["revenue", "cash_flow"],
comparison_period="2023-Q4"
)Architecture
src/
├── server.py # Main MCP server
├── mcp_instance.py # FastMCP configuration
├── config.py # Settings management
├── tools/ # 85 API tools
├── resources/ # 7 data resources
├── prompts/ # 14 workflow prompts
└── utils/ # API client and helpersDevelopment
Running Tests
python -m pytest tests/Adding New Features
Tools: Add to
src/tools/following existing patternsResources: Add to
src/resources/with proper URI schemePrompts: Add to
src/prompts/with clear parameter descriptions
API Coverage
Category | Coverage | Features |
Accounting | âś… 100% | Journals, entries, accounts, balance |
Invoicing | âś… 100% | Customer/supplier invoices, credit notes |
Banking | âś… 100% | Transactions, reconciliation, accounts |
Analytics | âś… 100% | Categories, groups, categorization |
Files | âś… 100% | Attachments, uploads, appendices |
Exports | âś… 100% | FEC, analytical ledger |
Documentation
License
MIT License - see LICENSE file for details.
Support
For issues or questions:
Check the Feature Guide
Review server logs for detailed errors
Ensure API credentials are valid
Open an issue on GitHub
Author
Guillaume Sayer - Studio Catapulte
Built with FastMCP and the Model Context Protocol by Anthropic.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
QuickBooks Online in Claude and ChatGPT: 221 tools, full ledger, multi-company, Canada + US, FR/EN.
Query your books, company data, business health, and ship invoices from your AI assistant.
Your books in your AI assistant: draft expenses, bills, invoices, estimates; ask about P&L, tax.
Connect Claude or Cursor to books, invoices, bills, payroll, and sealed closes.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with QuickFile UK accounting software, providing access to invoicing, client management, purchases, banking, and financial reporting through 40+ tools covering the complete QuickFile API.21 npm4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read and write Cynco accounting data, including querying books, creating invoices, reconciling transactions, and generating financial reports.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with FreshBooks accounting API for managing clients, invoices, payments, and more through natural language.-
- AlicenseBqualityCmaintenanceEnables AI assistants to query and manage self-hosted accounting data—invoices, balances, and books—through natural language, with read-only tools by default and optional scoped write operations.3019 PyPI1AGPL 3.0