Sas MCP Server
An MCP server for executing SAS code in a SAS Viya environment, supporting OAuth2 authentication and the HTTP protocol.
rating : 2.5 points
downloads : 5.8K
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

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
17.5K
4.5 points

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
28.6K
5 points

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
17.5K
4.3 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
53.9K
4.3 points

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
51.3K
4.5 points

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#
24.3K
5 points

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
17.2K
4.5 points

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
75.7K
4.7 points


