MCP server
Votion exposes an MCP server at /api/mcp — point any MCP-capable AI agent (Claude Code, Claude Desktop, a custom agent) at your instance and it can read and edit your workspace: pages, databases, rows, comments and files.
The MCP server is not a separate thing to install or run. It ships as part of the same Votion install you already have, both self-hosted and local dev — nothing extra to deploy.
Connect
- In Settings → API Keys & AI, create a personal API key and copy the token — it is shown once.
- Configure your MCP client with:
- URL:
https://<your-instance>/api/mcp(e.g.https://votion.example.com/api/mcp) - Transport: Streamable HTTP
- Authorization header:
Bearer <your API key>
- URL:
For Claude Code and OpenAI Codex, the AI section on the same Settings page has this ready to copy: the server URL, a prompt to paste into the assistant, and the claude mcp add / codex mcp add command — filled in with the key you just created.
A personal API key acts as you — it can do anything your account can do in the API, except change your password, email or two-factor settings (Settings → API Keys & AI explains the same limit). Treat it like a password: anyone with the key can read and edit everything you can see. Revoke a key from Settings → API Keys & AI the moment you stop using it somewhere.
What it can do
Every tool below is a thin wrapper over Votion's own REST API, so permissions and validation work exactly like using the app yourself — an agent can never see or touch a workspace it isn't a member of.
| Area | Tools |
|---|---|
| Workspaces | list_spaces, get_space, update_space (name, accent colour, icon, default week start weekStart (1 Monday, 0 Sunday, 6 Saturday), workspace language language (en, de), 2FA and session length), list_space_members, list_space_plugins, set_space_plugin_enabled (switch a plugin on or off for one workspace; owner or maintainer) |
| Pages | list_pages, search_pages (scope workspace / private), list_search_tabs, search (one Search tab — tab from list_search_tabs, e.g. tasks, contacts, customers, emails, invoices, events; all groups every tab's first hits), list_favorite_pages, list_recent_pages, list_trashed_pages, create_page, get_page, update_page, update_page_content, move_page, duplicate_page, trash_page, restore_page, delete_page, get_page_access, update_page_access |
| Comments | list_comments, create_comment, update_comment, delete_comment |
| Files | upload_file, get_file |
| Databases | create_database, get_database, create_database_property, update_database_property, delete_database_property, create_property_option, update_property_option, delete_property_option, create_database_view, update_database_view, delete_database_view |
| Rows | create_row, list_rows, update_row_properties, trash_row, restore_row |
| Row templates | list_database_templates, create_database_template, set_default_database_template |
| Database automations | list_database_automations, delete_automation, restore_automation (a deleted automation stops firing at once and can be restored for 10 minutes) |
Not covered: creating a workspace itself (workspaces are created from the app, not by an agent) and anything on the account-security allow-list (password, email, two-factor) — same two cuts a personal API key itself cannot do on the regular REST API.
Plugin-provided tools
A plugin can register its own MCP tools on top of the core set above. Those tools are only present while the plugin that registers them is enabled — turn the plugin off and its tools disappear from the server along with it.
| Plugin | Tools |
|---|---|
| Billing (bundled, on by default) | get_billing_settings, update_billing_settings, list_time_entries, start_timer, stop_timer, add_time_entry, update_time_entry, delete_time_entry, list_invoices, get_invoice, create_invoice, update_invoice, add_invoice_line, send_invoice, mark_invoice_paid, record_invoice_payment, void_invoice, duplicate_invoice, list_invoice_templates, get_invoice_template, update_invoice_template, delete_invoice_template, list_billing_clients, get_billing_client, create_billing_client, update_billing_client, check_billing_client_vat_id, link_crm_customer_billing_client, list_project_budgets, get_project_billing, update_project_billing, get_project_timesheet, preview_invoice_from_hours, create_invoice_from_hours, add_hours_to_invoice, list_my_time_entries |
| Mail (bundled) | list_mail_accounts, list_mail_threads, get_mail_thread, send_mail, update_mail_threads, create_page_from_mail |
| Contacts (bundled) | list_contacts (scope all / workspace / private / google / shared_google and accountId — the source filter; one of your Google accounts lists its private contacts plus the ones shared into the workspace that keep syncing from it; viewId applies a saved view), list_contact_google_accounts (your Google accounts: counts, which members use it, each account's own sync settings, sync errors with their code: revoked, rate limited or failed), update_contact_google_account (one account's syncEnabled, groupFilter, writeBack, keepSharedInSync), list_contact_views, get_contact, create_contact, update_contact (addresses — each a line of text or a place { label, lat?, lng?, placeId?, parts? } with an optional type; contacts return both, value being the label; companies — free-text company names; with CRM on, companyIds links a workspace contact to CRM companies, exactly these), list_contact_companies (the Companies field's options: CRM companies while CRM is on, otherwise source null and companies are free text), create_contact_company (creates a CRM company to link), share_contact — only the workspace's contacts and the caller's own private ones; another member's private contacts are never listed or found. A contact has no job title of its own: the role lives on its CRM company link |
| CRM (bundled, needs Contacts) | list_customers (pipelineOnly — the companies with a stage), get_customer, create_customer, update_customer (stage adds a company to the pipeline or changes its stage, null takes it off the board), archive_customer (archived true hides it from the list, the pipeline and the counts; false restores it), move_customer_stage (a stage in the Won group makes the customer Active), add_contact_to_customer (an existing contactId, or newContact { name, email } to create a workspace contact; optional role; a private contact needs shareMode keep_syncing or copied — it is then shared with the workspace), set_customer_contact_role (the role — job title — on the contact's link), remove_contact_from_customer (unlinks; the contact stays), add_customer_note, list_customer_activity, get_crm_settings, update_crm_settings (customer statuses and pipeline stages as full lists — keep id to rename, leave it out to add, drop an entry to remove it; stages carry a group open / won / lost — the groups themselves are fixed, a new stage names its group (default open), an existing stage keeps it unless group is set — a stage may change group and its deals then count for the new one (open → won: won, no longer open) — every group keeps one stage and the list comes back open, won, lost, the board's column order; a removed entry in use needs reassignStatuses / reassignStages to move its companies; the statuses Lead and Active stay) — customer status and pipeline stage are two separate properties and take the workspace's ids; open amounts and deal values only with See revenue |
| Calendar (bundled) | list_calendars, list_calendar_events, create_calendar_event, update_calendar_event, delete_calendar_event, respond_to_calendar_event, set_out_of_office, search_calendar |
| Projects (bundled) | get_projects_area, list_projects (with their tasks), create_project, get_project, archive_project (archive or restore), list_project_templates, get_project_template, create_project_template, update_project_template, change_project_template, switch_project_template, save_project_as_template — project, milestone and sprint templates; change_inherited_property (a property a project, milestone or sprint inherits from its template), set_fixed_property_hidden (hide or show a fixed milestone or sprint property), get_project_status_options and change_project_status_option (a project's own Status options: add, rename, recolour, regroup, reorder, delete — an option projects use needs moveTo, the option they move to, and is refused without it; the move and the delete are one transaction; changes need Manage project settings), set_projects_permission_role (the lowest workspace role that holds one of the six Projects permissions; needs Manage project settings) |
Common workflows
Build a database with a view. create_database first (it starts with a "Name" title column and a Table view already). Add columns with create_database_property — for a select/multi_select column, pass options to seed the choices, or add more later with create_property_option. Add rows with create_row, and set cells with update_row_properties (cell keys are the property ids create_database_property returned, as strings). An option marked archived: true (the CRM Customer property's archived customers) can't be newly picked; a cell that already holds it keeps it. Add another view (Board, Calendar, …) with create_database_view, and point it at the columns you want with update_database_view. Its settings merge into the view's own: a Calendar takes show_calendar_as ("month" or "week"); a Chart takes y_axis_aggregation (count, sum, average, min, max, median — per X-axis group) with y_axis_property_id, the number property every aggregation but count reads. A Table takes group_sort (manual, alphabetical, reverse_alphabetical), group_order (group keys — option ids or "__none__" — in manual order), hide_empty_groups (off by default, so empty options keep their group; a List and a Board take it too), and color_rules for Conditional color: a full list of { property_id, operator, value?, color }, where the condition is a filter rule and color is <colour>_background (the row) or <colour>_text (that property's cell) — colours red, orange, yellow, green, blue, purple, pink, brown, gray; the first matching rule wins.
Relate two databases. create_database_property with type: "relation", relatedDatabaseId and optionally relationLimit: "one". Pass twoWayName to also create the counterpart on the related database; links written on either side then show up on the other. A relation cell is an array of row ids of the related database (update_row_properties); ids from any other database are refused. update_database_property turns two-way on (twoWayName) and sets showPageIcons / displayPropertyIds.
Copy a database. duplicate_page on a database copies its properties, views, templates and every row as "Title (1)" right after the original. Pass withContent: false to copy the structure only (properties, views, templates — no rows). Ids inside the copy follow the copy; relations to other databases keep their targets (one-way).
Roll up a relation. create_database_property with type: "rollup", then update_database_property with rollup: relation_property_id (a relation of this database), target_property_id (a property of its related database) and calculate (sum, count_all, percent_per_group with group_option_id, latest_date, show_original, …). Display settings ride along in the same object: number_format, decimals, show_as (number/bar/ring), color, show_number, divide_by. The value is computed by the server and read like any cell (list_rows); writing a rollup cell is refused.
Compute a formula. create_database_property with type: "formula" and expression (e.g. prop("Price") * prop("Qty"); properties by name); update_database_property with expression changes it. The server computes the value into each row's properties (read it with list_rows / get_page); config.result_type names the result type and config.error the first error — a formula with an error still saves, with empty cells. Writing a formula cell is refused.
Structure a page tree. create_page with a parentId nests a page under another; omit it for a workspace-root page. move_page re-parents or reorders an existing page later, and afterId/beforeId land it at a specific spot among its new siblings.
Trash vs. permanent delete. trash_page and trash_row are soft deletes — reversible with restore_page/restore_row, and that is almost always what you want. delete_page is permanent: it and every descendant are gone for good, with no restore afterwards. Only reach for it when a human has actually asked for a permanent delete. list_trashed_pages returns, per page, who moved it (trashed_by_name), its section and path, and purge_at: when the page is permanently deleted (30 days after it was trashed).
Sharing. get_page_access reads a page's sharing list: the level everyone in the workspace gets, one entry per group or person, your own level (my_level) and whether you may change it (can_manage, only with Full access). update_page_access replaces the whole list — send exactly one { type: 'everyone', level } plus every group/person entry you want to keep. Levels are full, edit, comment (may comment but not edit), view and none (groups and everyone only).
Time tracking. list_time_entries, start_timer, stop_timer and add_time_entry come from the bundled Billing plugin. They work on any database row (pageId). start_timer starts the caller's timer — one timer per person, so a timer already running elsewhere stops first and comes back as stopped. stop_timer stops it wherever it runs. add_time_entry adds finished time in minutes (startedAt optional). update_time_entry changes an entry in place — startedAt, minutes, note, billable or pageId (moves it to another row in the same workspace) — and delete_time_entry deletes it. list_time_entries returns the row's entries (each with its exact duration_seconds) plus tracked, billable and billed totals as exact sums in seconds; the app rounds only the figure it shows up to whole minutes (at least 1). With Billing off for the workspace, entries stay readable and every write fails with E_BILLING_DISABLED; entries on an invoice fail with E_TIME_ENTRY_LOCKED. get_billing_settings / update_billing_settings read and change a workspace's Billing settings — the default hourly rate (hourlyRateCents, whole cents; projects can override it), rounding, the timer and lock switches (every invoice is a ZUGFeRD e-invoice, so there is no e-invoice setting), the sender (companyName, companyLegalName — printed instead of the name when set —, companyStreet, companyPostcode, companyCity, companyEmail, companyPhone), the bank account (bankAccountHolder, iban, bic, bankName, epcQr), tax (issuerCountry, vatId, taxNumber, smallBusiness, vatRateStandard, vatRateReduced, extraVatRates, autoReverseCharge, oss) and invoice numbers (numberFormat with {YYYY} {YY} {MM} {NNN}, numberRestart year / month / never, nextNumber — forward only, E_NUMBER_REUSED otherwise).
Projects, budgets and hours. Also from the Billing plugin, for the projects of the Projects plugin. list_project_budgets lists every project with billing type, rate, budget (used, total, percent, state on_track/warning/over), unbilled hours and amount. get_project_billing / update_project_billing read and change a project's Billing tab — clientId, billingType (hourly/fixed/retainer/none), rateCents, budgetHours or budgetCents, warnAt, billableDefault, estimatesCount, roundingIncrement / roundingScope (null = the Billing settings default); it also updates the project's Budget property. get_project_timesheet returns the entries grouped by task, date or person (from, to, status all/unbilled/billed, member). preview_invoice_from_hours shows the lines and totals create_invoice_from_hours would make (from, to, modetask/project/entry, rateCents); create_invoice_from_hours creates the draft (clientId, attachTimesheet, markBilled) and add_hours_to_invoice adds a project's unbilled hours to a draft. list_my_time_entries lists the caller's own entries (view week or all) with project, customer and amount; has_entries says whether the caller has tracked anything at all, not only in that view.
Invoices and clients. Also from the Billing plugin, with the caller's Billing permissions (Create invoices, See amounts). list_invoices lists a workspace's invoices (status: open, drafts, overdue, paid, …; clientId, projectId, contactId); get_invoice returns one with lines, totals, tax and payments. create_invoice makes a draft — with a clientId or a free recipient, optional projectId and lines (description, quantity, unit — h, day, pc or flat; month, km only to keep an older line — rateCents, vatRate) — and reserves its number. update_invoice changes a draft (dates, language, taxTreatmentOverride, …; the intro and payment note come from the template, so the invoice returns them filled in plus document_language — code, wanted, fallback); add_invoice_line appends a line. send_invoice sends through Mail (accountId, to, cc, attachments — { pdf, timesheet, einvoice, xrechnung }, false leaves a file out; ZUGFeRD is always embedded in the PDF, einvoice only matters without the PDF; xrechnung is the XRechnung XML of clients with “Also attach XRechnung”) or, without them, marks it sent; either way the invoice is frozen. mark_invoice_paid (paidOn, method: bank_transfer, card, paypal, cash or other), record_invoice_payment (amountCents, paidOn, note), void_invoice (reason) and duplicate_invoice follow the invoice's life. Sent invoices fail edits with E_INVOICE_LOCKED; an EU business client without a valid VAT ID fails send_invoice with E_TAX_CHECK_VAT_ID. list_invoice_templates, get_invoice_template and update_invoice_template manage invoice templates: texts (one { language, intro, paymentNote } per language — en, de, fr, it; the first is the fallback; placeholders such as {{invoice.number}}), logoType (icon or logo), letterheadFirst / letterheadFollowing (a PDF as data:application/pdf;base64,… or null, with letterheadFirstName / letterheadFollowingName), blockPositions ({ logo, sender, recipient, meta, intro, table, totals, footer }, each { x, y, w } in mm, or null for the layout's own places), layout, accentColor, font, name and isDefault. list_billing_clients, get_billing_client, create_billing_client and update_billing_client manage clients (name, legalName — the registered name invoices and the e-invoice buyer print instead of the name, null or empty for the name; returned as legal_name —, country, typebusiness/private, vatId, address, billingEmail, language — en, de, fr or it, the invoices' language —, currency, paymentTermsDays, taxTreatmentOverride — domestic, reverse_charge, export, oss, small_business or null for Automatic —, attachXrechnung — “Also attach XRechnung”, only for clients in Germany; returned as attach_xrechnung and effective_attach_xrechnung); check_billing_client_vat_id checks a client's VAT ID with VIES and returns the new tax treatment. link_crm_customer_billing_client (customerId, optional clientId) links a client to a CRM customer, or returns the customer's client and creates it from the customer when there is none ({ client_id, created }).
Mail. The Mail plugin's tools act as the caller, on the caller's own accounts and the shared inboxes they were given. list_mail_accounts returns a workspace's accounts (sync status included), views, labels and unread counts; omit spaceId for every workspace. list_mail_threads lists a folder (inbox, drafts, sent, scheduled, snoozed, done, spam, trash, all), narrowed by accountId, viewId or labelId, or searches with query; without spaceId it spans all workspaces. get_mail_thread reads every message of a thread. send_mail sends a plain-text mail at once — no undo window — or schedules it with scheduledAt; with threadId it replies (replyAll for everyone). A read-only account or a "Can read" shared inbox cannot send. update_mail_threads applies one action (done, snooze with until, read/unread, labels, trash, spam, …) to up to 200 threads. create_page_from_mail turns a thread into a page under parentId, a row of databaseId, or a private page.
Calendar. The Calendar plugin's tools act as the caller in one workspace. list_calendars returns their calendars — Votion calendars, Votion databases shown by a date property, Google and CalDAV calendars and Votion calendars shared with them — with access (owner, edit, details, free_busy), colour and visibility, plus the connected accounts and their sync errors. list_calendar_events lists everything between two instants: events with recurring series expanded (each occurrence carries its occurrence key) and database pages by their date property; free/busy calendars only return "Busy". create_calendar_event writes to the member's Default calendar unless calendarId says otherwise; Google and CalDAV events go to the provider and guests get its invitation. update_calendar_event and delete_calendar_event take occurrence and scope (this, following, all) for one occurrence of a series; a delete returns an undo object. respond_to_calendar_event answers an invitation (accepted, declined, tentative). set_out_of_office blocks whole days (end exclusive) and can decline meetings in that period with a message and cancel the ones the caller organizes — guests are notified, so confirm with the user first. search_calendar finds events and dated pages by title.
Errors
A tool call that fails the way a REST request would (not found, validation, a stale update_page_content version, …) comes back as a normal tool result with isError: true and the underlying API error in its text — read it and adjust, the same as a REST client would.
Usage skill for your agent
If your AI agent supports loading a SKILL.md file, copy skills/votion-mcp/SKILL.md from this repository into its skills directory. It is a curated subset, not the full tool table above: a "Need → Tool" quick reference covering the tools an agent reaches for most, plus walkthroughs for the workflows it runs into most — building a database with a view, structuring a page tree, and trash vs. permanent delete.