Skip to main content

SAS Viya

io.github.sassoftware/sas-mcp-server

v1.23.0Updated Nov 25, 2026stdio · Docker

Execute SAS code and query Compute, CAS, and model APIs on SAS Viya via OAuth 2.0.

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add sas-mcp-server -e 'VIYA_ENDPOINT=<your-viya-endpoint>' -e SSL_VERIFY=true -e CLIENT_ID=sas-mcp -e 'COMPUTE_CONTEXT_NAME=SAS Job Execution compute context' -e MCP_READ_ONLY=false -e MCP_APPS=true -e MCP_EMAIL_DRAFT=off -e MCP_STATELESS_HTTP=false -e VIYA_CLIENT_TIMEOUT=300 -- docker run -i --rm -e VIYA_ENDPOINT -e SSL_VERIFY -e CLIENT_ID -e COMPUTE_CONTEXT_NAME -e MCP_READ_ONLY -e MCP_APPS -e MCP_EMAIL_DRAFT -e MCP_STATELESS_HTTP -e VIYA_CLIENT_TIMEOUT ghcr.io/sassoftware/sas-mcp-server:1.23.0

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

11 settings.

  • VIYA_ENDPOINT
    Env var· required
    Base URL of your SAS Viya environment, e.g. https://viya.example.com. No trailing slash.
  • -v
    Argument· required
    Mount the SAS Viya CLI token cache into the container. The server reads ~/.sas/credentials.json, and $HOME is /app inside the image, so the .sas directory has to land at /app/.sas.
  • SSL_VERIFY
    Env var· optional
    Set false only for a self-signed Viya certificate. Disables verification for the whole process, so prefer a trusted certificate.Default: true
  • CLIENT_ID
    Env var· optional
    SASLogon OAuth client id used for the token refresh exchange.Default: sas-mcp
  • COMPUTE_CONTEXT_NAME
    Env var· optional
    Compute context that backs SAS code execution.Default: SAS Job Execution compute context
  • MCP_TIERS
    Env var· optional
    Expose only some tool tiers, e.g. 0-4 or 0,1,7. Empty exposes all 92 tools. Tiers: 0 Compute, 1 Data Discovery, 2 Data Operations, 3 Reports, 4 Batch Jobs, 5 AutoML, 6 Models, 7 Decisioning, 8 Workbench, 9 Business Glossary.
Show 5 more
  • MCP_READ_ONLY
    Env var· optional
    Expose only tools that neither change server-side state nor cause server-side work (51 of 92). Composes with MCP_TIERS.Default: false
  • MCP_APPS
    Env var· optional
    Register interactive views (MCP Apps) for the data, SAS log and glossary tools. Additive: text-only clients are unaffected. Set false to register none.Default: true
  • MCP_EMAIL_DRAFT
    Env var· optional
    Email draft on the decision scoring view's result card: outlook (an Outlook on the web draft), mail (the default mail app) or off (no email controls). The person sends the draft themselves; nothing is sent by the server.Default: off
  • MCP_STATELESS_HTTP
    Env var· optional
    Serve HTTP requests without an MCP session. Needed by clients that speak only the sessionless 2026-07-28 protocol revision (claude.ai custom connectors); the legacy handshake works either way.Default: false
  • VIYA_CLIENT_TIMEOUT
    Env var· optional
    Timeout in seconds for every SAS Viya REST call the tools make.Default: 300

Listed in the official MCP Registry since Nov 25, 2026. Mirrored daily; last checked Nov 26, 2026.