mydata-mcp
Read-only MCP server for the Greek AADE myDATA e-books API, enabling natural language queries about invoices, income, and expenses with decoded bilingual labels.
README
mydata-mcp
Read-only MCP server for the Greek AADE myDATA e-books API.
Ask Claude (or any MCP client) questions about your business's invoices, income, and expenses — in plain language. All myDATA codes (document types, VAT categories, E3 classifications) are decoded into human-readable bilingual labels before they ever reach the model.
⚠️ Unofficial project — not affiliated with AADE. Strictly read-only: no write endpoint of the myDATA API is ever called.
What can you ask?
- "Ποια τιμολόγια έλαβα από προμηθευτές τον Ιούλιο;"
- "What was my gross margin in July 2026?"
- "Who are my top 5 suppliers by spend this quarter?"
- "Show me all credit notes I issued last month."
Features
- 4 tools — received documents, transmitted documents, income summary, expense summary, with date/VAT/type filters and transparent pagination.
- 3 resources — full myDATA code tables (invoice types, VAT categories, classifications) the model can consult on demand.
- 1 prompt —
monthly_reviewgenerates a complete monthly business review. - Battle-tested XML handling — survives myDATA's escaped/nested and occasionally malformed XML responses via lxml recovery mode.
- Compact output — clean, typed JSON instead of raw XML dumps; details are opt-in per call, so token usage stays low.
Architecture
flowchart LR
LLM["MCP client<br/>(Claude Desktop / Claude Code)"] <-->|stdio| S[server.py]
S --> C["client.py<br/>httpx · auth · pagination"]
C <-->|HTTPS/XML| A[("AADE myDATA API")]
C --> P["parser.py<br/>xmltodict + lxml recovery"]
P --> N["normalizer.py<br/>pydantic + code decoding"]
N -->|compact JSON| S
Quickstart
1. Get myDATA credentials
Register at mydata.aade.gr to obtain your
user_id and subscription_key.
2. Configure your MCP client
Claude Desktop (claude_desktop_config.json) or Claude Code
(claude mcp add):
{
"mcpServers": {
"mydata": {
"command": "uvx",
"args": ["--from", "git+https://github.com/nikagabriel741agent/myData-MCP-Server", "mydata-mcp"],
"env": {
"MYDATA_USER_ID": "your-user-id",
"MYDATA_SUBSCRIPTION_KEY": "your-subscription-key"
}
}
}
}
For a local checkout, use "args": ["--from", "/path/to/mydata-mcp", "mydata-mcp"].
3. Ask away
Try the built-in prompt: monthly_review(month=7, year=2026).
Tools
| Tool | myDATA endpoint | Description |
|---|---|---|
get_received_documents |
RequestDocs |
Documents received from suppliers |
get_transmitted_documents |
RequestTransmittedDocs |
Documents you issued |
get_income_summary |
RequestMyIncome |
Income bookings per E3 classification |
get_expense_summary |
RequestMyExpenses |
Expense bookings per E3 classification |
Common parameters: date_from / date_to (ISO or dd/MM/yyyy),
counterpart_vat, invoice_type, include_details, max_results.
Every response carries page_info: {has_more, next_mark}.
Resources
| URI | Contents |
|---|---|
mydata://codes/invoice-types |
Document types 1.1–17.6 (EN + EL) |
mydata://codes/vat-categories |
VAT categories with rates |
mydata://codes/classifications |
E3/VAT classification categories & types |
Configuration
| Variable | Required | Description |
|---|---|---|
MYDATA_USER_ID |
✅ | AADE user id |
MYDATA_SUBSCRIPTION_KEY |
✅ | AADE subscription key |
MYDATA_ENV |
— | production (default) or sandbox |
Development
uv sync # install
uv run pytest # test (all HTTP mocked — no credentials needed)
uv run ruff check .
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.