Skip to content
Grok

SAS Viya for Grok

io.github.sassoftware/sas-mcp-server

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

client:Grok transport:stdio runtime:oci

Install SAS Viya in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "sas-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/sassoftware/sas-mcp-server:1.16.1"
      ],
      "env": {
        "VIYA_ENDPOINT": "<VIYA_ENDPOINT>",
        "SSL_VERIFY": "<SSL_VERIFY>",
        "CLIENT_ID": "<CLIENT_ID>",
        "COMPUTE_CONTEXT_NAME": "<COMPUTE_CONTEXT_NAME>",
        "MCP_TIERS": "<MCP_TIERS>",
        "MCP_READ_ONLY": "<MCP_READ_ONLY>",
        "MCP_APPS": "<MCP_APPS>",
        "MCP_STATELESS_HTTP": "<MCP_STATELESS_HTTP>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

SAS Viya in other clients