Sas MCP Server
S

Sas MCP Server

An MCP server for executing SAS code in a SAS Viya environment, supporting OAuth2 authentication and the HTTP protocol.
2.5 points
6.4K

What is the SAS MCP Server?

The SAS MCP Server is a connection tool that acts as a bridge between the SAS Viya platform and clients supporting the MCP protocol (such as AI assistants, IDE plugins, etc.). Through this server, you can execute SAS code, analyze data, and obtain results through a familiar interface without directly logging into the SAS Viya environment.

How to use the SAS MCP Server?

Using the SAS MCP Server requires three main steps: 1) Complete the necessary configuration in your SAS Viya environment; 2) Install and start the MCP server; 3) Configure the server connection in your MCP client (such as Claude Desktop, Cursor, etc.). After the configuration is complete, you can directly send SAS code through the client and view the execution results.

Use cases

The SAS MCP Server is particularly suitable for the following scenarios: Data analysts want to quickly execute SAS queries through an AI assistant; Developers need to directly run SAS code in an integrated development environment; Teams want to integrate SAS analysis capabilities into existing workflows; Students in an educational environment need to access SAS computing resources.

Main features

SAS code execution
Supports the execution of complete SAS code snippets, including data steps (DATA STEP), procedure steps (PROC STEP), and various SAS functions. The server will send the code to the SAS Viya computing context for execution and return the log and output results.
Security authentication
Uses the OAuth2 with PKCE flow for authentication to ensure a secure connection to SAS Viya. This modern authentication method provides better security and user experience.
Standardized protocol
Built based on the Model Context Protocol (MCP) standard and compatible with all clients supporting MCP. This means you can use various tools (such as Claude Desktop, Cursor, etc.) to access SAS functions.
HTTP server
Provides an MCP server with an HTTP interface, which is easy to deploy and integrate. The server runs on the local port 8134 by default and can be interacted with through network requests.
Advantages
Seamless integration: Integrate SAS analysis capabilities into the tools you use daily.
No SAS client required: There is no need to install SAS Studio or other SAS client software.
Standardized interface: Uses the industry-standard MCP protocol with good compatibility.
Security authentication: Adopts modern OAuth2 authentication, which is secure and reliable.
Cross-platform: Supports Windows, macOS, and Linux systems.
Limitations
Requires a SAS Viya environment: You must already have an available SAS Viya computing service.
Many configuration steps: Multiple configuration steps need to be completed for the initial setup.
Depends on the Python environment: Requires Python 3.12+ and the uv package manager.
Network requirements: Requires a network connection that can access the SAS Viya server.

How to use

Environment preparation
Ensure you have: 1) Python 3.12 or higher; 2) The uv package manager; 3) An accessible SAS Viya environment; 4) Complete the MCP setup of SAS Viya according to the configuration guide.
Install the server
Clone the repository and install the dependent packages. This will create a virtual environment in the project directory and install all necessary Python packages.
Configure the environment
Copy the environment variable template file and edit the.env file to set your SAS Viya server address.
Start the server
Run the server program. By default, the server will start at http://localhost:8134/mcp.
Configure the client
Add the server configuration to your MCP client. Taking VS Code as an example, add the server information to.vscode/mcp.json.

Usage examples

Basic data analysis
Create a simple data set and perform basic statistical analysis. This example shows how to create a data set containing student information and then use PROC PRINT to view the data.
Data summary statistics
Perform statistical calculations on an existing data set, such as calculating descriptive statistics like the mean and standard deviation.
Data visualization
Generate simple chart and graph outputs to help visualize data distribution and trends.

Frequently Asked Questions

Do I need to have SAS programming experience to use this server?
Which SAS versions does the server support?
Is there a size or time limit for executing SAS code?
How can I view detailed error information?
Can I run multiple SAS sessions simultaneously?
How can I upload data files to the SAS server?

Related resources

SAS Viya official documentation
Complete official documentation for the SAS Viya platform, including installation, configuration, and usage guides
Model Context Protocol specification
Official specification and documentation for the MCP protocol to understand how the protocol works
Python official website
Official website for the Python programming language, for downloads and documentation
uv package manager
Fast Python package installer and resolver for managing project dependencies
Project GitHub repository
Source code and latest version of the SAS MCP Server
Configuration guide
Detailed configuration steps and instructions for the SAS Viya environment

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
9.0K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
9.7K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
6.4K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
10.0K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
6.7K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
6.6K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
9.7K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
7.9K
4 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
30.8K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
22.5K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
65.0K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
18.6K
4.5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
57.9K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
28.6K
5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
20.4K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
43.5K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase