Koskamo

SAS Viya MCP

A self-hosted MCP server for executing SAS code, training AutoML projects, scoring models, and accessing CAS and Compute APIs on SAS Viya environments. It supports OAuth2 authentication with PKCE flow and provides interactive views for data and logs in clients like VS Code and Claude.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

SAS Viya MCP logo, by SASCommunity listingLocal stdioSource reviewed; not executedPublished by SAS
Vendor documentation

What you can do with it

  • Execute SAS code on Viya
  • Train AutoML projects
  • Score models
  • Query CAS and Compute APIs

Source and maintenance

Community listingRegistry 1.19.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

ghcr.io/sassoftware/sas-mcp-server:1.19.1

ocidocker
ghcr.io/sassoftware/sas-mcp-server:1.19.1 package definition
{
  "transport": "stdio",
  "identifier": "ghcr.io/sassoftware/sas-mcp-server:1.19.1",
  "runtimeHint": "docker",
  "registryType": "oci",
  "packageArguments": [
    {
      "type": "positional",
      "value": "app-stdio"
    }
  ],
  "runtimeArguments": [
    {
      "name": "-v",
      "type": "named",
      "value": "{sas_token_dir}:/app/.sas",
      "variables": {},
      "isRequired": true,
      "description": "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."
    }
  ],
  "environmentVariables": [
    {
      "name": "VIYA_ENDPOINT",
      "format": "string",
      "isRequired": true,
      "description": "Base URL of your SAS Viya environment, e.g. https://viya.example.com. No trailing slash."
    },
    {
      "name": "SSL_VERIFY",
      "format": "string",
      "default": "true",
      "description": "Set false only for a self-signed Viya certificate. Disables verification for the whole process, so prefer a trusted certificate."
    },
    {
      "name": "CLIENT_ID",
      "format": "string",
      "default": "sas-mcp",
      "description": "SASLogon OAuth client id used for the token refresh exchange."
    },
    {
      "name": "COMPUTE_CONTEXT_NAME",
      "format": "string",
      "default": "SAS Job Execution compute context",
      "description": "Compute context that backs SAS code execution."
    },
    {
      "name": "MCP_TIERS",
      "format": "string",
      "description": "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."
    },
    {
      "name": "MCP_READ_ONLY",
      "format": "string",
      "default": "false",
      "description": "Expose only tools that neither change server-side state nor cause server-side work (51 of 92). Composes with MCP_TIERS."
    },
    {
      "name": "MCP_APPS",
      "format": "string",
      "default": "true",
      "description": "Register interactive views (MCP Apps) for the data, SAS log and glossary tools. Additive: text-only clients are unaffected. Set false to register none."
    },
    {
      "name": "MCP_STATELESS_HTTP",
      "format": "string",
      "default": "false",
      "description": "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."
    },
    {
      "name": "VIYA_CLIENT_TIMEOUT",
      "format": "number",
      "default": "300",
      "description": "Timeout in seconds for every SAS Viya REST call the tools make."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "sas-viya-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VIYA_ENDPOINT=<YOUR_VIYA_ENDPOINT>",
        "-e",
        "SSL_VERIFY=<YOUR_SSL_VERIFY>",
        "-e",
        "CLIENT_ID=<YOUR_CLIENT_ID>",
        "-e",
        "COMPUTE_CONTEXT_NAME=<YOUR_COMPUTE_CONTEXT_NAME>",
        "-e",
        "MCP_TIERS=<YOUR_MCP_TIERS>",
        "-e",
        "MCP_READ_ONLY=<YOUR_MCP_READ_ONLY>",
        "-e",
        "MCP_APPS=<YOUR_MCP_APPS>",
        "-e",
        "MCP_STATELESS_HTTP=<YOUR_MCP_STATELESS_HTTP>",
        "-e",
        "VIYA_CLIENT_TIMEOUT=<YOUR_VIYA_CLIENT_TIMEOUT>",
        "ghcr.io/sassoftware/sas-mcp-server:1.19.1",
        "app-stdio"
      ],
      "env": {
        "VIYA_ENDPOINT": "<YOUR_VIYA_ENDPOINT>",
        "SSL_VERIFY": "<YOUR_SSL_VERIFY>",
        "CLIENT_ID": "<YOUR_CLIENT_ID>",
        "COMPUTE_CONTEXT_NAME": "<YOUR_COMPUTE_CONTEXT_NAME>",
        "MCP_TIERS": "<YOUR_MCP_TIERS>",
        "MCP_READ_ONLY": "<YOUR_MCP_READ_ONLY>",
        "MCP_APPS": "<YOUR_MCP_APPS>",
        "MCP_STATELESS_HTTP": "<YOUR_MCP_STATELESS_HTTP>",
        "VIYA_CLIENT_TIMEOUT": "<YOUR_VIYA_CLIENT_TIMEOUT>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "sas-viya-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VIYA_ENDPOINT=<YOUR_VIYA_ENDPOINT>",
        "-e",
        "SSL_VERIFY=<YOUR_SSL_VERIFY>",
        "-e",
        "CLIENT_ID=<YOUR_CLIENT_ID>",
        "-e",
        "COMPUTE_CONTEXT_NAME=<YOUR_COMPUTE_CONTEXT_NAME>",
        "-e",
        "MCP_TIERS=<YOUR_MCP_TIERS>",
        "-e",
        "MCP_READ_ONLY=<YOUR_MCP_READ_ONLY>",
        "-e",
        "MCP_APPS=<YOUR_MCP_APPS>",
        "-e",
        "MCP_STATELESS_HTTP=<YOUR_MCP_STATELESS_HTTP>",
        "-e",
        "VIYA_CLIENT_TIMEOUT=<YOUR_VIYA_CLIENT_TIMEOUT>",
        "ghcr.io/sassoftware/sas-mcp-server:1.19.1",
        "app-stdio"
      ],
      "env": {
        "VIYA_ENDPOINT": "<YOUR_VIYA_ENDPOINT>",
        "SSL_VERIFY": "<YOUR_SSL_VERIFY>",
        "CLIENT_ID": "<YOUR_CLIENT_ID>",
        "COMPUTE_CONTEXT_NAME": "<YOUR_COMPUTE_CONTEXT_NAME>",
        "MCP_TIERS": "<YOUR_MCP_TIERS>",
        "MCP_READ_ONLY": "<YOUR_MCP_READ_ONLY>",
        "MCP_APPS": "<YOUR_MCP_APPS>",
        "MCP_STATELESS_HTTP": "<YOUR_MCP_STATELESS_HTTP>",
        "VIYA_CLIENT_TIMEOUT": "<YOUR_VIYA_CLIENT_TIMEOUT>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "sas-viya-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VIYA_ENDPOINT=<YOUR_VIYA_ENDPOINT>",
        "-e",
        "SSL_VERIFY=<YOUR_SSL_VERIFY>",
        "-e",
        "CLIENT_ID=<YOUR_CLIENT_ID>",
        "-e",
        "COMPUTE_CONTEXT_NAME=<YOUR_COMPUTE_CONTEXT_NAME>",
        "-e",
        "MCP_TIERS=<YOUR_MCP_TIERS>",
        "-e",
        "MCP_READ_ONLY=<YOUR_MCP_READ_ONLY>",
        "-e",
        "MCP_APPS=<YOUR_MCP_APPS>",
        "-e",
        "MCP_STATELESS_HTTP=<YOUR_MCP_STATELESS_HTTP>",
        "-e",
        "VIYA_CLIENT_TIMEOUT=<YOUR_VIYA_CLIENT_TIMEOUT>",
        "ghcr.io/sassoftware/sas-mcp-server:1.19.1",
        "app-stdio"
      ],
      "env": {
        "VIYA_ENDPOINT": "<YOUR_VIYA_ENDPOINT>",
        "SSL_VERIFY": "<YOUR_SSL_VERIFY>",
        "CLIENT_ID": "<YOUR_CLIENT_ID>",
        "COMPUTE_CONTEXT_NAME": "<YOUR_COMPUTE_CONTEXT_NAME>",
        "MCP_TIERS": "<YOUR_MCP_TIERS>",
        "MCP_READ_ONLY": "<YOUR_MCP_READ_ONLY>",
        "MCP_APPS": "<YOUR_MCP_APPS>",
        "MCP_STATELESS_HTTP": "<YOUR_MCP_STATELESS_HTTP>",
        "VIYA_CLIENT_TIMEOUT": "<YOUR_VIYA_CLIENT_TIMEOUT>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "sas-viya-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VIYA_ENDPOINT=<YOUR_VIYA_ENDPOINT>",
        "-e",
        "SSL_VERIFY=<YOUR_SSL_VERIFY>",
        "-e",
        "CLIENT_ID=<YOUR_CLIENT_ID>",
        "-e",
        "COMPUTE_CONTEXT_NAME=<YOUR_COMPUTE_CONTEXT_NAME>",
        "-e",
        "MCP_TIERS=<YOUR_MCP_TIERS>",
        "-e",
        "MCP_READ_ONLY=<YOUR_MCP_READ_ONLY>",
        "-e",
        "MCP_APPS=<YOUR_MCP_APPS>",
        "-e",
        "MCP_STATELESS_HTTP=<YOUR_MCP_STATELESS_HTTP>",
        "-e",
        "VIYA_CLIENT_TIMEOUT=<YOUR_VIYA_CLIENT_TIMEOUT>",
        "ghcr.io/sassoftware/sas-mcp-server:1.19.1",
        "app-stdio"
      ],
      "env": {
        "VIYA_ENDPOINT": "<YOUR_VIYA_ENDPOINT>",
        "SSL_VERIFY": "<YOUR_SSL_VERIFY>",
        "CLIENT_ID": "<YOUR_CLIENT_ID>",
        "COMPUTE_CONTEXT_NAME": "<YOUR_COMPUTE_CONTEXT_NAME>",
        "MCP_TIERS": "<YOUR_MCP_TIERS>",
        "MCP_READ_ONLY": "<YOUR_MCP_READ_ONLY>",
        "MCP_APPS": "<YOUR_MCP_APPS>",
        "MCP_STATELESS_HTTP": "<YOUR_MCP_STATELESS_HTTP>",
        "VIYA_CLIENT_TIMEOUT": "<YOUR_VIYA_CLIENT_TIMEOUT>"
      }
    }
  }
}

Let your agent find its tools

Find servers like SAS Viya MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.