datev-mcp
Connects an AI assistant to the official DATEV APIs for German bookkeeping, payroll and documents. Provides tools to list clients (Mandanten) and fiscal years, retrieve Summen- und Saldenliste (sums and balances) filtered by account prefix, fetch all posted bookings for a fiscal year with completeness reporting, and search a client's real chart of accounts (SKR03/SKR04/custom). Supports document/receipt upload to the Belegbilderservice and importing EXTF booking files (with local validation and EXTF batch generation), plus discovery and invocation of any of the 209 DATEV operations across 23 API specifications. All write actions require a preview-bound one-time confirmation code before anything is sent.
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.
datev-mcp
Ask your AI assistant about your DATEV bookkeeping, payroll and documents in plain words, and let it act on them only after you have seen exactly what it will do.
What this is, in plain words
DATEV holds the books of most German small and medium businesses. Getting a number out of it, uploading a receipt, or checking a payroll export usually means logging in, clicking through several screens and copying values by hand.
datev-mcp connects an AI assistant (Claude, Cursor, VS Code Copilot or any client that speaks the Model Context Protocol) to the official DATEV APIs. You ask "what is the balance on account 1200 for client 455148-1 this year?" and the assistant fetches it from DATEV for you. When an action would change data, such as uploading a document or importing bookings, the assistant first shows you a preview and does nothing until you agree.
It is built for tax advisors, bookkeepers, and the developers who build tools for them.
Related MCP server: Red MCP Server
What you get
Answers without clicking. Clients, fiscal years, sums and balances, account postings and the chart of accounts come straight from DATEV into the conversation.
Nothing changes behind your back. Every write that changes bookings, files or records returns a preview first. The real call only runs with a one-time confirmation code that matches that exact preview, so the assistant cannot quietly swap the file or the target client. The one exception is
datev_account_postings, which starts DATEV's read-only postings export job directly.Every DATEV operation, not a hand-picked few. All 209 operations across 23 DATEV API specifications are indexed and can be searched and described (health checks only on request), with 18 tools for the everyday cases and for calling any operation directly. Every operation that takes a file upload can be sent with
datev_upload_file, after a preview.Your files stay yours. The server refuses to send anything from hidden folders (where SSH keys and cloud logins live) or anything that looks like a key or credentials file.
Your connection, under your control.
statusshows who is connected and until when,disconnectrevokes every token at DATEV before it deletes the local session, and a login that loses a data service's permission is ended for you.Client ids stay out of sight. DATEV's technical client id is replaced by the client's name and numbers in previews, approvals, links and paging, so it never ends up in a conversation.
English or German. Set
DATEV_MCP_LANG=deand the login page,doctor, previews, approvals and error messages speak German.Honest answers. If DATEV returns an error, an incomplete page or an answer shape the accounting tools do not understand, you get told instead of a fake empty list. Rows the tools cannot read are counted in the answer (
skipped_rows,rows_without_account), and a chart of accounts with no readable row is refused.
From zero to your first answer
You need a DATEV developer account with an app registered for the sandbox, and Node.js 22 or newer. The DATEV portal steps are in docs/SETUP.md. Plan about 15 minutes the first time.
Every screenshot below was taken on 2026-11-07 against the DATEV sandbox, which holds test data only. The DATEV logo is blurred on purpose; this project is not affiliated with DATEV.
1. Install and build
git clone https://github.com/mjmirza/datev-mcp.git
cd datev-mcp
npm install
npm run specs # downloads DATEV's public API specs into specs/ (never committed)
npm run build2. Add your DATEV app credentials
For production, inject the client id and secret from a password manager when the server starts, so the secret is never written to disk. For sandbox development a local settings file is fine.
cp .env/.env.example .env/.env.local
# edit .env/.env.local: DATEV_CLIENT_ID and DATEV_CLIENT_SECRET (sandbox only)Git ignores .env/.env.local, but the file is plain text, so do not keep a production secret in it. Every setting is explained in .env/README.md. Never paste the secret into a chat.
3. Sign in once
node --env-file=.env/.env.local dist/index.js services
node --env-file=.env/.env.local dist/index.js login --services accounting-dataexchange,accounting-documents,accounting-extf-filesPick the data services you will use from the services list. DATEV allows only their scopes, so the server asks for nothing more.
A browser window opens at DATEV's sandbox login. These are the four screens you will see.
3a. Choose how to sign in. For a sandbox test account, pick DATEV-Benutzerkonto and press Next.

3b. Enter your sandbox username and password. You type these into DATEV's own page. datev-mcp never sees them.

3c. Grant the permissions. DATEV lists what the app may do and where it will send you back (a one-time localhost address on your own machine). Press "I agree" at the bottom.

3d. Done. The browser shows a short confirmation page, in light or dark to match your system and in German with DATEV_MCP_LANG=de, and your terminal prints Connected to DATEV sandbox as <your name> with the date and time the connection stays valid. The session is saved encrypted on your machine. dist/index.js status shows the connection at any time, dist/index.js disconnect ends it.

Command | Does |
| Connects to DATEV with the data services you choose |
| Shows whether the connection is active, for whom and until when |
| Revokes every token at DATEV, then deletes the local session. |
| Lists the data services you can choose |
| Checks credentials, the session and live API access |
| Shows how this installation meets DATEV's interface requirements |
Working over SSH, or want a different browser? Set DATEV_MCP_NO_BROWSER=1 and the command only prints the link.
4. Check that everything works
node --env-file=.env/.env.local dist/index.js doctorSix green lines mean the credentials, the operation index, the saved session, the token and two live DATEV calls all work.

5. Connect your AI client
Example for Claude Code. Other MCP clients take the same command and arguments.
claude mcp add datev -- node --env-file=/absolute/path/to/datev-mcp/.env/.env.local /absolute/path/to/datev-mcp/dist/index.js6. Ask your first question
Type "which clients can I reach in DATEV?". That is your first win.
What the answers look like
These are real answers from the DATEV sandbox, unedited apart from shortening long lists. The questions are what you type, the tool line is what your assistant calls behind the scenes.
Your clients and the data services each one has switched on.

Search the client's real chart of accounts in plain words.

Sums and balances (Summen- und Saldenliste) for a fiscal year.

Every posted booking of the year. DATEV prepares this export as a background job. The server waits for it, reads all pages and tells you whether the list is complete.

Booking something. Preview first, nothing sent. The assistant builds and checks a DATEV booking file, then shows you what it would import and where. It can only send it after you agree, using the confirmation code tied to this exact file.

The tools
Tool | What it does | Changes data |
| Lists the clients (Mandanten) your login can see | No |
| Lists a client's fiscal years, after checking the client switched on Datenservice Export Rechnungswesen | No |
| Summen- und Saldenliste, filterable by account prefix | No |
| Posted bookings for a fiscal year, all pages, resumable | No |
| Searches the client's real chart of accounts (SKR03, SKR04 or custom) | No |
| Checks a DATEV EXTF booking file locally, before anything is sent | No |
| Builds a valid EXTF booking file from rows you describe, cost centres included | No, writes a local file |
| Imports an EXTF booking file into a client with Buchungsdatenservice, waits for DATEV's import result, refuses to send the same file twice by accident | Yes, preview first |
| Shows the result of an earlier EXTF import | No |
| Uploads a receipt or invoice to Belegbilderservice or Buchungsdatenservice, with the client's own document types | Yes, preview first |
| Lists the document types (Belegtypen) a client accepts | No |
| Checks with consultant and client number that a data service may be used for a client | No |
| Sends local files to any DATEV operation that takes a multipart upload | Yes, preview first |
| Finds DATEV operations by words (health checks with | No |
| Shows the parameters an operation needs | No |
| Shows whether the DATEV connection is active, for whom, and until when | No |
| Shows how this installation meets DATEV's interface requirements | No |
| Calls a DATEV operation by id, reads directly, writes with preview. Sends JSON or text. Files go through | Writes need confirmation |
How well it is tested
Type check, tests and scenarios were re-run on 2026-11-10. The planted bug check and the live sandbox numbers are from 2026-11-07 and 2026-11-08. The method and how to reproduce each one is in docs/VALIDATION.md.
Check | Result |
Offline scenarios across all 209 operations | 28,582 of 28,582 passing |
Planted bugs the scenarios had to catch | 5 of 5 caught |
Unit and integration tests | 405 of 405 passing |
Live DATEV sandbox, read operations reached | 71, with 38 returning data |
Adversarial review by two other AI models (Codex and Grok), 19 rounds | 136 of 141 findings fixed, each with a test that fails without the fix. The rest are decisions with their reason, all in REVIEW-LEDGER.md |
Per operation results are in docs/ENDPOINT-AUDIT.md.
Safety in one paragraph
Operation calls only go to the DATEV hosts named in DATEV's specs and never follow a redirect, so your credentials cannot be forwarded elsewhere by them. Token, revoke, userinfo and doctor calls refuse redirects too. Logins use OAuth with PKCE, DATEV's ID token is verified, and the session is stored encrypted with the key in your operating system's credential store. Writes need a preview-bound confirmation code, and in production you approve each one in the client. A write that DATEV answers with a server error is reported as possibly applied, never as safely refused. Disconnect revokes every token at DATEV, and a token DATEV does not confirm as revoked is kept on record and retried. Calls have a time budget, can be cancelled by your AI client, and stop reading an answer once it grows too large. The full threat model is in docs/SECURITY.md.
For developers
Area | Choice |
Language | TypeScript, strict mode, Node.js 22+ |
Protocol | Model Context Protocol SDK 1.32, stdio transport |
Validation | zod for tool inputs, DATEV's own schema for path values |
DATEV auth | OpenID Connect authorization code flow with PKCE, refresh tokens rotated, refreshes across processes serialized by a file lock |
EXTF files |
|
Tests | Node test runner, fast-check property tests, a generated offline eval, a paced live sandbox sweep |
src/
api/client.ts builds, sends and reads every DATEV request
auth/ OAuth login, token refresh, session file and its lock
tools/ the 18 MCP tools
setup/ login, status, disconnect, doctor and compliance commands
scripts/ spec download, operation index, endpoint audit
test/unit/ unit and integration tests
test/evals/run.ts the offline scenario generator
test/live-sweep.ts the rate-limited live sandbox crawl
docs/ setup, security, validation, compliance and moreCommand | Does |
| Type checks without building |
| Unit and integration tests |
| The offline scenario run, writes a report to |
| A short live check against the DATEV sandbox |
| The paced live crawl, resumes where it stopped |
| Rebuilds the answered-questions catalogue in |
| Rebuilds the DATEV requirements checklist and its summary |
Community
Got a question? Search the 2,000+ answered questions first. They cover setup, login, safety, every tool, every DATEV operation with its measured sandbox result, and the questions people ask about the DATEV API in DATEV's community, on Reddit and in YouTube walkthroughs.
Still stuck? Ask in Discussions, Q&A.
An idea for a tool or a DATEV product? Post it in Discussions, Ideas.
What is planned? See the project board.
A security problem? Report it privately through the Security tab.
Before you use real client data
The sandbox may only hold test data. Using this with real clients needs DATEV's paid technical review (Technische Prüfung) for production access. Read docs/COMPLIANCE.md before that step. The full path from sandbox to production, with costs, meetings and agreements, is in docs/PRODUCTION-APPROVAL.md.
datev-mcp compliance shows, for your own installation, whether the app type, the technical log, the error rate and the refresh tokens are as DATEV requires, and how every DATEV interface requirement stands. Your AI client can show the same through the datev_compliance tool. Every requirement with its status and evidence is in docs/COMPLIANCE-CHECKLIST.md, and every review finding with its fix and guarding test in docs/REVIEW-LEDGER.md.
More documentation
Want this in production, or built for your firm?
This server is the open, inspectable part. Getting it approved by DATEV and fitted to how a firm actually works is where most of the effort goes. That work is offered as a paid service.
DATEV approval, end to end. Preparing both review meetings, the file-format review and the agreements, so the first appointment passes.
Implementation for your workflow. Mapping your bookings, documents and client processes onto DATEV's data services, with writes that a person approves.
Custom integrations. New tools, other DATEV products, or connecting DATEV to your CRM, ERP, n8n or Mastra automations.
A commercial license for business or client use of this server.
Book a call or ask a question through next8n.com.
License
Source-available, not open source. An individual may run and study it for personal, non-commercial evaluation with the credit kept intact. Any business or client use, and any derivative work, including one generated by an AI, needs written consent. The full terms are in LICENSE. For a commercial license or help setting it up, reach out through next8n.com.
DATEV is a registered trademark of DATEV eG. This project is independent and is not affiliated with, endorsed by, or sponsored by DATEV eG. See docs/TRADEMARKS.md.
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
DATEV financial data for AI assistants: P&L, KPIs, bookings, budgets and monthly reporting.
Connect ChatGPT and Claude to Fortnox: read your books and propose changes you approve before anything is written.
German tax-firm workflows: clients, deadlines, documents, time tracking and DATEV data via OAuth.
Connect ChatGPT and Claude to Fortnox: invoices, customers, reports. Every write needs your OK.
Related MCP Servers
- FlicenseBqualityBmaintenanceConnects AI assistants to Big Red Cloud accounting data, enabling read-only lookups and safe write operations with confirmation drafts.100-

Red MCP Serverofficial
AlicenseBqualityBmaintenanceConnects AI assistants to Big Red Cloud accounting data, allowing natural-language queries and controlled write operations with safety checks.100Apache 2.0- AlicenseNot gradedqualityNot gradedmaintenanceEnables users to connect AI assistants to Fortnox for reviewing financial results, costs and liquidity, managing receipts and bookkeeping proposals, preparing customer invoices, tracking payments, and working across multiple companies with approvals before posting.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables interaction with DATEV Online APIs to upload documents, reconcile account statements, and manage HR payroll data such as employees and absences.MIT