AFAS MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AFAS_TOKEN | Yes | App connector token: the `<token>` XML, only its `<data>` value, or the base64 form. Required. | |
| AFAS_BASE_URL | No | Full REST base URL; overrides member id and environment. | |
| AFAS_LANGUAGE | No | Language of AFAS messages: `nl-nl`, `nl-be`, `fr-fr`, `de-de` or `en-us`. | nl-nl |
| AFAS_MAX_TAKE | No | Largest `take` a call may request. | 1000 |
| AFAS_LOG_LEVEL | No | Log level; logs go to stderr so stdio stays clean. | INFO |
| AFAS_MEMBER_ID | No | AFAS Online environment number. Required unless AFAS_BASE_URL is set. | |
| AFAS_ENVIRONMENT | No | AFAS environment: `production`, `test` or `accept`; selects `rest`, `resttest` or `restaccept`. | production |
| AFAS_ALLOW_WRITES | No | Register the insert, update and delete tools. | false |
| AFAS_DEFAULT_TAKE | No | Rows per page when a call gives no `take`. | 100 |
| AFAS_TIMEOUT_SECONDS | No | HTTP timeout per AFAS call. | 60 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server exposes one AFAS Profit environment through its REST connectors.
To read data:
afas_list_connectors finds GetConnectors (search by keyword; ids are technical names such as Profit_Employees).
afas_describe_get_connector lists the field ids, labels and data types of a connector.
afas_get_rows returns rows. Filter on field ids, not labels. Text operators add % wildcards themselves. Page with skip and take, and always pass order_by when paging so pages do not overlap. afas_connection_info tells which environment you are connected to and whether the token works. UpdateConnector schemas are available through afas_describe_update_connector, and afas_validate_payload checks a payload against such a schema without sending anything.
This server runs read-only: no tool can change data in AFAS. Ask the operator to start it with AFAS_ALLOW_WRITES=true if changes are required.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| afas_connection_infoA | Show which AFAS environment this server talks to and confirm the token works by asking for the Profit version. |
| afas_list_connectorsA | List the GetConnectors and UpdateConnectors the configured token may use, optionally filtered by keyword. |
| afas_describe_get_connectorA | Describe a GetConnector: its field ids, labels, data types and lengths. Use the ids in filters and order_by. |
| afas_describe_update_connectorA | Describe an UpdateConnector: its fields (mandatory, key, allowed values) and the nested objects it accepts. |
| afas_get_rowsA | Read one page of rows from a GetConnector, with optional filters and sort order. |
| afas_validate_payloadA | Check an UpdateConnector payload against the connector schema without sending it, and show the exact body. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool has a distinct role: connectivity check, connector listing, GetConnector schema, UpdateConnector schema, reading rows, and payload validation. Overlap is minimal because describe tools are separated by connector direction, and get_rows versus validate_payload operate at different stages.
All names use the afas_ prefix and snake_case; most follow a verb_noun pattern such as list_connectors, describe_get_connector, get_rows, and validate_payload. afas_connection_info is noun-only, a minor deviation, but the set remains predictable.
Six tools is well-scoped for a focused AFAS connector API surface. Each tool maps to a clear step in discovery, schema introspection, or data access rather than redundant helpers.
The set supports connection checks, connector discovery, schema introspection, reads, and payload validation, but there is no tool to actually create or update rows through an UpdateConnector. That leaves the write path as a dead end after validate_payload and omits core mutation operations.