Home › Other › SAS Viya

SAS Viya

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

Python
★ 60 stars Last pushed 2026-09-24 License: Apache-2.0

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (oci)

docker run -i --rm ghcr.io/sassoftware/sas-mcp-server:1.16.1

Or add to your MCP client config:

{
  "mcpServers": {
    "sas-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/sassoftware/sas-mcp-server:1.16.1"
      ],
      "env": {
        "VIYA_ENDPOINT": "<YOUR_VALUE>",
        "SSL_VERIFY": "<YOUR_VALUE>",
        "CLIENT_ID": "<YOUR_VALUE>",
        "COMPUTE_CONTEXT_NAME": "<YOUR_VALUE>",
        "MCP_TIERS": "<YOUR_VALUE>",
        "MCP_READ_ONLY": "<YOUR_VALUE>",
        "MCP_APPS": "<YOUR_VALUE>",
        "MCP_STATELESS_HTTP": "<YOUR_VALUE>"
      }
    }
  }
}
  • VIYA_ENDPOINT required — Base URL of your SAS Viya environment, e.g. https://viya.example.com. No trailing slash.
  • SSL_VERIFY — Set false only for a self-signed Viya certificate. Disables verification for the whole process, so prefer a trusted certificate.
  • CLIENT_ID — SASLogon OAuth client id used for the token refresh exchange.
  • COMPUTE_CONTEXT_NAME — Compute context that backs SAS code execution.
  • MCP_TIERS — 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.
  • MCP_READ_ONLY — Expose only tools that neither change server-side state nor cause server-side work (51 of 92). Composes with MCP_TIERS.
  • MCP_APPS — Register interactive views (MCP Apps) for the data, SAS log and glossary tools. Additive: text-only clients are unaffected. Set false to register none.
  • MCP_STATELESS_HTTP — 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.

This server takes extra arguments — see its repository.

Related servers

Data from the Official MCP Registry