SAS Viya MCP server
io.github.sassoftware/sas-mcp-server·v1.19.1·61 starsExecute SAS code and query Compute, CAS, and model APIs on SAS Viya via OAuth 2.0.
not scanned yet
61 stars
Reviews
Write oneNobody has reviewed SAS Viya yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
SAS Viya tools
No tool declarations could be read from the package source. They show once the server is installed.
How SAS Viya compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 90/100
- higher than 85% of 4,460 AI and agents servers
- GitHub stars
- 61
- more than 92% of 2,711 AI and agents servers
Release history: 6 versions in the registry since 2026-09-15, latest 2026-10-30, typically one every 7 days.
Install SAS Viya in Claude Code, Cursor or VS Code
claude mcp add sas-mcp-server -- docker run -i --rm ghcr.io/sassoftware/sas-mcp-server:1.19.1
What the publisher says
From the SAS Viya repository's README, as published. We do not edit it. Read it on GitHub
SAS Viya MCP Server
A Model Context Protocol (MCP) server for executing SAS code, training AutoML projects, scoring models and so much more for SAS Viya environments.
Features
- 92 tools across 10 selectable tiers, spanning the Analytics Life Cycle on SAS Viya
- Interactive views (MCP Apps) for data, SAS logs and glossary editing in clients that render them — Claude, ChatGPT, Microsoft 365 Copilot, VS Code, Cursor
- Prompt Templates for improving your SAS Code
- OAuth2 authentication with PKCE flow
- HTTP-based MCP server compatible with MCP clients
Articles & Videos
Here you can find getting articles on how to use and integrate the SAS MCP Server in different tools and what to build with it:
- From REST APIs to AI Agents: Why the SAS Viya MCP Server Matters
- Connecting GitHub Copilot to SAS Viya with the SAS Viya MCP Server
- Bring Your Own Key: SAS Viya MCP Server with GitHub Copilot CLI
- Putting the SAS Viya MCP Server to Work in GitHub Copilot
- Connecting Claude Code CLI to SAS Viya with the SAS Viya MCP Server
- Putting the SAS Viya MCP Server to Work in Claude Code CLI
- Integration with SAS Retrieval Agent Manager (RAM)
Getting Started
Prerequisites
- Required
- Python 3.12+
- uv 0.8+
- SAS Viya environment with compute service
- Setup the Viya environment for MCP
- See configuration.md
- Optional
- Docker: refer to container setup
- Kubernetes: sample manifests (Contour or nginx) and a Helm chart in deploy/
Installation
- Clone the repository:
git clone <repository-url>
cd sas-mcp-server- Install dependencies
uv syncNOTE: This will by default create a virtual environment called .venv in the project's root directory.
If for some reason the virtual environment is not created, please run uv venv and then re-run uv sync.
Usage
- Configure environment variables:
cp .env.sample .envEdit .env and set
VIYA_ENDPOINT=https://your-viya-server.com- Start the MCP server (see Choosing a deployment mode below):
Option A: HTTP mode (pre-run the server, connect from MCP client)
uv run appThe server will be available at http://localhost:8134/mcp by default. Authentication is handled via OAuth2 PKCE flow in the browser.
Option B: Stdio mode (MCP client starts the server on demand)
Authenticate once. Two equivalent options:
# Option B1 — if you have the SAS Viya CLI installed:
sas-viya auth loginCode
# Option B2 — built-in helper, no external CLI needed (Viya 2022.11+):
uv run sas-mcp-loginBoth flows write an access token to a local cache (~/.sas/credentials.json and ~/.sas-mcp-server/credentials.json respectively); the stdio server reads whichever it finds. When the token expires, re-run the same command.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
SAS Viya: common questions
- Is SAS Viya MCP server safe?
- Yes, by our scan: it is graded A (90/100). Read the SAS Viya safety report
- How do I install SAS Viya?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does SAS Viya need an API key?
- No secret keys are declared. It reads 9 settings from the environment.
- Is SAS Viya maintained?
- The last commit was 36 days ago (2026-09-29). The latest release is v1.19.1.
- What can I use instead of SAS Viya?
- Servers from other publishers that do the same job: three.ws Autopilot MCP server.
- How does SAS Viya compare with other AI and agents MCP servers?
- safety score 90/100 (higher than 85% of 4,460 AI and agents servers); github stars 61 (more than 92% of 2,711 AI and agents servers). Full comparison.
Alternatives to SAS Viya
Same job from other publishers: the closest match first, then the best rated.
- three.ws AutopilotSet autopilot scopes and a daily SOL spend cap, then propose, execute, and undo agent actions.not reviewedEstablishedB