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.6K

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

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
5.7K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
5.8K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
5.9K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
6.7K
4 points
P
Paperbanana
Python
8.2K
5 points
F
Finlab Ai
FinLab AI is a quantitative financial analysis platform that helps users discover excess returns (alpha) in investment strategies through AI technology. It provides a rich dataset, backtesting framework, and strategy examples, supporting automated installation and integration into mainstream AI programming assistants.
7.5K
4 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
7.3K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
7.9K
5 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
35.5K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
73.9K
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
22.3K
4.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
25.4K
4.3 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
66.3K
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#
32.5K
5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
98.9K
4.7 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
51.1K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase