SAS Viya logo

SAS Viya

Connects AI clients to SAS Viya for SAS code execution, analytics workflows, model scoring, and API access.

Install SAS Viya

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
http://localhost:8134/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

SAS Viya MCP server connects MCP clients to SAS Viya environments through HTTP or stdio. It exposes 115 tools in 11 selectable tiers for executing SAS code, working with Compute and CAS, training AutoML projects, and scoring models. HTTP deployments use OAuth 2.0 with PKCE, while stdio deployments can use a cached Viya access token. Reach for it when an agent needs to operate SAS Viya analytics services or expose them to a supported client.

Use cases

  • Execute SAS code from an MCP client
  • Query Compute and CAS services
  • Train AutoML projects through an agent
  • Score models through SAS Viya APIs
  • Inspect data and SAS logs in supported clients

Key features

  • 115 tools across 11 selectable tiers
  • SAS code execution
  • Compute, CAS, and model API access
  • AutoML training and model scoring
  • OAuth 2.0 PKCE authentication
  • Interactive MCP App views

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

8/8 checks healthy over the last 38d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars66Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How SAS Viya works

What SAS Viya does

SAS Viya provides MCP tools for interacting with SAS Viya analytics environments across the analytics life cycle. Its tool catalog contains 115 tools organized into 11 selectable tiers, allowing a deployment to expose a relevant subset of capabilities rather than one undifferentiated collection.

Core workflows include running SAS code, querying SAS Viya Compute and CAS services, training AutoML projects, scoring models, and working with model APIs. The server also provides prompt templates intended to help clients produce better SAS code. Clients that render MCP Apps can receive interactive views for data, SAS logs, and glossary editing.

How it works

The server supports two primary MCP transports. In HTTP mode, it runs as a separate service and exposes the MCP endpoint at /mcp; the default local address is http://localhost:8134/mcp. Authentication uses an OAuth 2.0 PKCE flow that opens in a browser. This mode suits shared or longer-running deployments.

In stdio mode, an MCP client launches the server when needed. Before the first run, authenticate with either the SAS Viya CLI's sas-viya auth loginCode command or the included sas-mcp-login helper. The resulting access token is stored in a local credentials cache, and the stdio server reads the available token. Authentication must be repeated after the token expires.

HTTP mode can also accept a pre-existing Viya bearer token when ALLOW_RAW_BEARER=true. For intentionally unauthenticated development endpoints, VIYA_AUTH=false disables the SASLogon and OAuth flows. A fixed Compute session can be selected with COMPUTE_SESSION_ID when the deployment does not provide /compute/contexts.

Setup and configuration

A local installation requires Python 3.12 or newer, uv 0.8 or newer, and a SAS Viya environment with the Compute service. Clone the repository and run uv sync to create the project environment and install dependencies. Copy .env.sample to .env, then set VIYA_ENDPOINT to the SAS Viya URL.

Start HTTP mode with uv run app, or configure a client to launch stdio mode with uv run app-stdio. Docker and Podman images are also supported for HTTP deployment. Kubernetes deployment examples include manifests and a Helm chart; the remote service is placed behind an ingress and accessed over HTTPS.

Tools and capabilities

  • Execute SAS code through Viya Compute.
  • Query Compute, CAS, and model APIs.
  • Train AutoML projects.
  • Score models.
  • Select from 11 tool tiers covering different analytics life-cycle areas.
  • Provide interactive data, log, and glossary views in clients that render MCP Apps.
  • Supply prompt templates for SAS code generation and improvement.

Limitations and notes

Gemini CLI requires stdio mode because it does not support HTTP mode or browser-based OAuth. Microsoft 365 Copilot requires a remotely hosted MCP server reachable over HTTPS, such as a Kubernetes deployment. Microsoft Copilot Studio also uses a remote HTTPS deployment and may require MCP_TOOL_RENAME=catalog_=infocat_ because its agent runtime rejects tool names beginning with catalog_.

The server needs a SAS Viya environment with the relevant services and authentication setup. HTTP and container deployments use interactive OAuth by default, while stdio depends on a locally cached access token. Container and Kubernetes deployments avoid requiring Python on the host, but still require the corresponding container or cluster infrastructure.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about SAS Viya

SAS Viya is an MCP server that connects AI clients to SAS Viya environments. Its tools execute SAS code, query Compute and CAS services, access model APIs, train AutoML projects, and score models. It supports HTTP and stdio transports, with OAuth 2.0 PKCE for interactive HTTP authentication.

Install it with Python 3.12+ and uv 0.8+ by cloning the repository and running `uv sync`. Set `VIYA_ENDPOINT` in a copied `.env` file, then start HTTP mode with `uv run app` or configure the client to launch `uv run app-stdio`. Docker and Kubernetes deployment options are also available.

Yes, SAS Viya works with Cursor. Cursor is named as a client that can render its interactive MCP App views for data, SAS logs, and glossary editing. The server can be connected through its HTTP MCP endpoint or launched in stdio mode.

Authenticate once with `sas-viya auth loginCode` or `uv run sas-mcp-login`. Either command stores an access token in a local cache that the stdio server reads. Run the same command again when the token expires.

Yes, Gemini CLI can use SAS Viya through stdio mode. Gemini CLI does not support the server's HTTP mode or browser-based OAuth, so authenticate with the SAS Viya CLI or `sas-mcp-login`, then configure Gemini CLI to start `uv run app-stdio`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSAS Viya AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sas-viya?style=directory)](https://allmcps.com/mcp/sas-viya)
HTML Embed
<a href="https://allmcps.com/mcp/sas-viya"><img src="https://allmcps.com/api/badge/sas-viya?style=directory" alt="SAS Viya on AllMCPs" /></a>