Skip to content

MCP server (use from AI) ​

AI such as Claude can read Exment data with the user's own permissions. Exment has an MCP (Model Context Protocol) server.

※This feature is available in Exment v7.2.1 or later.
※It is off at first. A system administrator turns on "MCP" in "Settings: System" > "Feature Management" and chooses the role groups that may use it.
※It only reads.

Connecting ​

  • Address: https://(Exment URL)/api/mcp (/admin/api/mcp on a site with "/admin")
  • Sign-in: send an API key (or an OAuth access token) as Authorization: Bearer ...

Example (Claude Code):

claude mcp add --transport http exment https://(Exment URL)/api/mcp --header "Authorization: Bearer exk_xxxxxxxx"

Tools ​

ToolWhat it does
list_tablesThe tables you can see
get_tableThe columns and more of a table
search_dataSearch records (without words, the newest first)
get_dataOne record
list_attachmentsThe list of attachments (names and such only)
get_workflow_statusThe workflow status

What it returns ​

  • Only what the user of the key or token may see. Table and record permissions, the key's scopes (table_read, value_read, workflow_read) and the key's tables apply as for the API.
  • Rows per call: EXMENT_MCP_MAX_ROWS in .env (default 50, at most 100). Calls per user per minute: EXMENT_MCP_CALLS_PER_MINUTE (default 60).
  • Each tool call goes to the operation log (method MCP).
  • The API IP filter applies as well.