Execute SAS code and query Compute, CAS, and model APIs on SAS Viya via OAuth 2.0.
Connect Runs on your machine
claude mcp add sas-mcp-server -e VIYA_ENDPOINT=<VIYA_ENDPOINT> -e SSL_VERIFY=<SSL_VERIFY> -e CLIENT_ID=<CLIENT_ID> -e COMPUTE_CONTEXT_NAME=<COMPUTE_CONTEXT_NAME> -e MCP_TIERS=<MCP_TIERS> -e MCP_READ_ONLY=<MCP_READ_ONLY> -e MCP_APPS=<MCP_APPS> -e MCP_STATELESS_HTTP=<MCP_STATELESS_HTTP> -e VIYA_CLIENT_TIMEOUT=<VIYA_CLIENT_TIMEOUT> -- docker run -i --rm ghcr.io/sassoftware/sas-mcp-server:1.19.2
{
"mcpServers": {
"sas-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/sassoftware/sas-mcp-server:1.19.2"
],
"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>",
"VIYA_CLIENT_TIMEOUT": "<VIYA_CLIENT_TIMEOUT>"
}
}
}
}
{
"mcpServers": {
"sas-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/sassoftware/sas-mcp-server:1.19.2"
],
"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>",
"VIYA_CLIENT_TIMEOUT": "<VIYA_CLIENT_TIMEOUT>"
}
}
}
}
{
"servers": {
"sas-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/sassoftware/sas-mcp-server:1.19.2"
],
"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>",
"VIYA_CLIENT_TIMEOUT": "<VIYA_CLIENT_TIMEOUT>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
VIYA_ENDPOINTRequired | Base URL of your SAS Viya environment, e.g. https://viya.example.com. No trailing slash. |
SSL_VERIFYOptional | Set false only for a self-signed Viya certificate. Disables verification for the whole process, so prefer a trusted certificate. |
CLIENT_IDOptional | SASLogon OAuth client id used for the token refresh exchange. |
COMPUTE_CONTEXT_NAMEOptional | Compute context that backs SAS code execution. |
MCP_TIERSOptional | 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_ONLYOptional | Expose only tools that neither change server-side state nor cause server-side work (51 of 92). Composes with MCP_TIERS. |
MCP_APPSOptional | 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_HTTPOptional | 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. |
VIYA_CLIENT_TIMEOUTOptional | Timeout in seconds for every SAS Viya REST call the tools make. |
Details
| Package | ghcr.io/sassoftware/sas-mcp-server:1.19.2 (OCI, stdio) |
| First published | 12 Nov 2026 |
| Last updated | 12 Nov 2026 |
| Registry name | io.github.sassoftware/sas-mcp-server |
More developer tools servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
