AbraFlexi 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., "@AbraFlexi MCP Servershow me all issued invoices from last month"
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.
AbraFlexi MCP Server
A comprehensive Model Context Protocol (MCP) server for AbraFlexi integration using FastMCP and python-abraflexi. This server provides complete access to AbraFlexi REST API functionality through MCP-compatible tools.
Features
64 tools in total, covering the full REST surface exposed by
python-abraflexi:
dedicated tools for the most common evidences (invoices, contacts,
products, bank transactions), plus generic evidence_* tools that work
against any AbraFlexi evidence by name.
π Invoice Management
invoice_issued_get- Retrieve issued invoices (faktura-vydana)invoice_issued_create- Create new issued invoicesinvoice_issued_update- Update existing issued invoicesinvoice_issued_delete- Remove issued invoicesinvoice_received_get- Retrieve received invoices (faktura-prijata)invoice_received_create- Create new received invoices
π³ Issued Invoice Business Logic
invoice_issued_match_payment- Match an invoice against a payment document (PΓ‘rovΓ‘nΓ plateb)invoice_issued_cash_payment- Pay an invoice in cash (HotovostnΓ ΓΊhrada)invoice_issued_deduct_advance- Deduct an advance invoice (OdpoΔet zΓ‘loh a ZDD)invoice_issued_deduct_zdd- Deduct an advance tax document, ZDD (OdpoΔet zΓ‘loh a ZDD)invoice_issued_link_zdd- Link a ZDD to an income payment (Vazby ZDD)invoice_issued_unlink_zdd- Remove a ZDD bonding (Vazby ZDD)invoice_issued_overdue_days- Compute days overdue from a due date (pure, no API call)invoice_issued_get_email- Resolve the best recipient email for an invoiceinvoice_issued_get_recipients- Resolve all recipient emails for an invoice
π₯ Contact Management
contact_get- Retrieve contacts and companies (adresar)contact_create- Create new contactscontact_update- Update existing contactscontact_delete- Remove contacts
βοΈ Contact Convenience Lookups
contact_get_notification_email- Best email to notify (primary/purpose-matching contact)contact_get_cell_phone- Cell phone number to usecontact_get_any_phone- Any usable phone number (mobile preferred over landline)contact_get_bank_accounts- Registered bank account(s) for a contact
π¦ Product Management
product_get- Retrieve products from price list (cenik)product_create- Create new productsproduct_update- Update existing productsproduct_delete- Remove products
π¦ Bank Transaction Management
bank_transaction_get- Retrieve bank transactions (banka)bank_transaction_create- Create new bank transactions
π§ Generic Evidence Operations
evidence_get- Get records from any evidence (filter, pagination, sorting, relations)evidence_create- Create record in any evidenceevidence_update- Update record in any evidence (supportsremove_external_ids)evidence_delete- Delete record from any evidenceevidence_list- List all available evidences
π Locking, Actions & Batch Operations
evidence_lock/evidence_unlock/evidence_lock_for_ucetni- Lock/unlock a recordevidence_storno- Cancel (storno) a document recordevidence_perform_action- Call a record's dedicated business action (e.g.pay)evidence_mass_update- Update, or act on, every record matching a filter (DΓ‘vkovΓ© operace)evidence_batch_insert/evidence_batch_update- Insert/update many records in one request
π Attachments
evidence_attach_file- Attach a local file to any recordevidence_list_attachments- List a record's attachmentsevidence_get_attachment- Get metadata for a single attachmentevidence_download_attachment- Download an attachment to a local fileevidence_get_attachment_thumbnail- Download an image attachment's thumbnailevidence_delete_attachment- Delete an attachment
π§Ύ Reports, QR Codes & User Queries
evidence_export_report- Export a PDF/XLSX report for a record or evidence listingevidence_get_qr_code- Get a document's payment QR code (file or base64 data URI)call_user_query- Call a saved user-defined query (uΕΎivatelskΓ½ dotaz)
βΉοΈ Evidence Metadata & Summation
evidence_get_properties- List the fields supported by an evidenceevidence_get_reports- List the printable reports available for an evidenceevidence_get_relations_list- List the sub-evidences (relations) available for an evidenceevidence_get_sum- Get summation (totals) for an evidenceevidence_get_record_changes- Get a single record's change history
π·οΈ Labels (Ε‘tΓtky)
evidence_get_labels- Get labels assigned to a recordevidence_set_label- Add a labelevidence_unset_label- Remove specific label(s)evidence_unset_labels- Remove all labels
π Changes API (company-wide incremental sync)
changes_enable/changes_disable- Toggle change trackingchanges_status- Check whether change tracking is enabledchanges_get- Page through recorded changes since a given version
Related MCP server: MCP FacturaScripts
Installation
Prerequisites
Python 3.10 or higher
Access to an AbraFlexi server with API enabled
Option 1: Install from PyPI (Recommended)
pip install abraflexi-mcp-serverThen run the server:
abraflexi-mcpOption 2: AppImage (Linux)
Download the self-contained AppImage from the latest release:
chmod +x AbraFlexi-MCP-Server-*-x86_64.AppImage
./AbraFlexi-MCP-Server-*-x86_64.AppImageNo Python or pip required. See AppImage section for details.
Option 3: Install from Source
Clone the repository:
git clone https://github.com/VitexSoftware/abraflexi-mcp-server.git cd abraflexi-mcp-serverInstall with uv (recommended):
uv sync uv run python scripts/start_server.pyOr with pip:
pip install -e . abraflexi-mcp
Cloud Deployment
A testing deployment is available at:
π https://abraflexi.fastmcp.app/mcp
This cloud-hosted instance allows you to test and use the AbraFlexi MCP server without local installation. Configure your MCP client to connect to this endpoint with HTTP transport.
Note: This is a testing deployment. For production use, we recommend self-hosting using one of the installation methods above.
Configuration
Create a .env file or set environment variables:
cp .env.example .env
# Edit .env with your AbraFlexi server detailsConfiguration
Required Environment Variables
ABRAFLEXI_URL- Your AbraFlexi server URL (e.g.,https://demo.flexibee.eu:5434)ABRAFLEXI_COMPANY- Company identifier (e.g.,demo_de)
Authentication (choose one method)
Method 1: Username/Password (Recommended)
ABRAFLEXI_LOGIN- Your AbraFlexi usernameABRAFLEXI_PASSWORD- Your AbraFlexi password
Method 2: Session ID
ABRAFLEXI_AUTHSESSID- Your AbraFlexi session ID
Optional Configuration
READ_ONLY- Set totrue,1, oryesto enable read-only mode (default:true)ABRAFLEXI_TIMEOUT- Request timeout in seconds (default:300)
Transport Configuration
ABRAFLEXI_MCP_TRANSPORT- Transport type:stdio(default) orstreamable-http
HTTP Transport Configuration (only used when ABRAFLEXI_MCP_TRANSPORT=streamable-http):
ABRAFLEXI_MCP_HOST- Server host (default:127.0.0.1)ABRAFLEXI_MCP_PORT- Server port (default:8000)ABRAFLEXI_MCP_STATELESS_HTTP- Stateless mode (default:false)AUTH_TYPE- Must be set tono-authfor streamable-http transport
Usage
Running the Server
With startup script (recommended):
uv run python scripts/start_server.pyDirect execution:
uv run python -m abraflexi_mcp_server.serverCLI help:
abraflexi-mcp --helpTransport Options
The server supports two transport methods:
STDIO Transport (Default)
Standard input/output transport for MCP clients like Claude Desktop:
# Set in .env or environment
ABRAFLEXI_MCP_TRANSPORT=stdioHTTP Transport
HTTP-based transport for web integrations:
# Set in .env or environment
ABRAFLEXI_MCP_TRANSPORT=streamable-http
ABRAFLEXI_MCP_HOST=127.0.0.1
ABRAFLEXI_MCP_PORT=8000
ABRAFLEXI_MCP_STATELESS_HTTP=false
AUTH_TYPE=no-authTesting
Run test suite:
uv run python scripts/test_server.pyRead-Only Mode
When READ_ONLY=true (default), the server will only expose GET operations (retrieve data) and block all create, update, and delete operations. This is useful for:
π Monitoring dashboards
π Read-only integrations
π Security-conscious environments
π‘οΈ Preventing accidental modifications
To enable write operations, set READ_ONLY=false in your .env file.
Example Tool Calls
Get all issued invoices:
invoice_issued_get(limit=10)Get specific invoice by code:
invoice_issued_get(kod="INV-2024-001")Create a new contact:
contact_create(
kod="CUSTOMER01",
nazev="Example Company s.r.o.",
email="info@example.com",
tel="+420123456789"
)Get products:
product_get(nazev="Widget", limit=5)Generic evidence query (with pagination/sorting):
evidence_get(
evidence="faktura-vydana",
filter_expr="datVyst >= '2024-01-01'",
order="datVyst",
order_direction="D",
limit=20,
start=0
)Attach a local file to any record:
evidence_attach_file(evidence="cenik", kod="PRODUCT01", filepath="/path/to/photo.jpg")Lock an invoice, then export its PDF:
evidence_lock(evidence="faktura-vydana", kod="INV-2024-001")
evidence_export_report(
evidence="faktura-vydana",
kod="INV-2024-001",
output_path="/tmp/invoice.pdf",
report_name="dodaciList"
)Mass-update every price-list item from a supplier:
evidence_mass_update(
evidence="cenik",
filter_expr="dodavatel = 'code:SUPPLIER01'",
data={"stitky": "code:VIP"}
)Incremental sync via the Changes API:
changes_enable()
page = changes_get(start=0, limit=500, evidences=["faktura-vydana"])
# page["changes"], page["next"], page["global_version"]MCP Integration
This server is designed to work with MCP-compatible clients like Claude Desktop. See MCP_SETUP.md for detailed integration instructions.
OCI Container
The server can be run as an OCI container (Docker/Podman) β no Python installation needed on the host.
Building the image
podman build -t abraflexi-mcp-server -f Containerfile .Running the container
The image defaults to streamable-http transport on port 8000.
With individual environment variables:
podman run --rm -p 8000:8000 \
-e ABRAFLEXI_URL=https://demo.flexibee.eu:5434 \
-e ABRAFLEXI_COMPANY=demo_de \
-e ABRAFLEXI_LOGIN=winstrom \
-e ABRAFLEXI_PASSWORD=winstrom \
abraflexi-mcp-serverWith an env file:
podman run --rm -p 8000:8000 --env-file .env abraflexi-mcp-serverContainer environment defaults
Variable | Default |
|
|
|
|
|
|
|
|
All other configuration variables can be passed as environment variables.
AppImage
A self-contained, single-file Linux executable β no Python, pip, or any other dependency required on the host.
Building the AppImage
bash appimage/build-appimage.shThe script downloads a portable CPython and appimagetool automatically. The resulting file is placed in build/appimage/:
build/appimage/AbraFlexi-MCP-Server-<version>-x86_64.AppImageRunning the AppImage
The AppImage automatically loads a .env file from the current working directory if one is present.
With a .env file (recommended):
cp .env.example .env
# edit .env with your credentials
./AbraFlexi-MCP-Server-*-x86_64.AppImageWith inline environment variables:
ABRAFLEXI_URL=https://demo.flexibee.eu:5434 \
ABRAFLEXI_COMPANY=demo_de \
ABRAFLEXI_LOGIN=winstrom \
ABRAFLEXI_PASSWORD=winstrom \
./AbraFlexi-MCP-Server-*-x86_64.AppImageDevelopment
Project Structure
abraflexi-mcp-server/
βββ abraflexi_mcp_server/
β βββ __init__.py
β βββ server.py # Main server implementation
βββ appimage/
β βββ AppRun # AppImage entry point
β βββ abraflexi-mcp-server.desktop
β βββ abraflexi-mcp-server.svg
β βββ build-appimage.sh # AppImage build script
βββ debian/ # Debian packaging
β βββ abraflexi-mcp-server.svg # AppStream stock icon
β βββ abraflexi-mcp-server.install
β βββ cz.vitexsoftware.abraflexi-mcp-server.metainfo.xml
βββ scripts/
β βββ start_server.py # Startup script with validation
β βββ test_server.py # Test script
βββ Containerfile # OCI container build
βββ server.json # MCP Registry manifest
βββ pyproject.toml # Python project configuration
βββ setup.py # Legacy setuptools configuration
βββ requirements.txt # Dependencies
βββ .env.example # Environment configuration template
βββ .env # Your configuration (not in git)
βββ .gitignore # Git ignore patterns
βββ README.md # This fileRunning Tests
# Test server functionality
uv run python scripts/test_server.py
# Test with specific environment
ABRAFLEXI_URL=https://your-server.com uv run python scripts/test_server.pyError Handling
The server includes comprehensive error handling:
β Authentication errors are clearly reported
π Read-only mode violations are blocked with descriptive messages
βοΈ Invalid parameters are validated
π Network and API errors are properly formatted
π Detailed logging for troubleshooting
Security Considerations
π Store credentials securely in
.envfile (never commit to git)π Enable read-only mode for monitoring-only use cases
π‘οΈ Use HTTPS for AbraFlexi server connections
π Regularly rotate passwords
π Ensure
.envfile has proper permissions (600)
Troubleshooting
Common Issues
Connection Failed:
Verify
ABRAFLEXI_URLis correct and accessibleCheck authentication credentials
Ensure AbraFlexi API is enabled
Check firewall/network settings
Permission Denied:
Verify user has sufficient AbraFlexi permissions
Check if read-only mode is enabled when trying to modify data
Tool Not Found:
Ensure all dependencies are installed:
uv syncVerify Python version compatibility (3.10+)
Debug Mode
Set environment variable for detailed logging:
export DEBUG=1
uv run python scripts/start_server.pyDependencies
FastMCP - MCP server framework
python-abraflexi - AbraFlexi Python library
python-dotenv - Environment variable management
License
This project is licensed under the MIT License.
Acknowledgments
AbraFlexi for the accounting platform
Model Context Protocol for the integration standard
FastMCP for the server framework
Support
π Documentation
π Issue Tracker
Author
VΓtΔzslav DvoΕΓ‘k
Email: info@vitexsoftware.cz
GitHub: @VitexSoftware
Made with β€οΈ for the AbraFlexi and MCP communities
Maintenance
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/VitexSoftware/abraflexi-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server