PowerShell EX
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PowerShell EXlist all services running on the system"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PowerShell EX β Advanced PowerShell for VS Code & Antigravity IDE
π The most powerful PowerShell integration for VS Code and AI-driven development
Created by Vitaly Golik (mjojo)
π Why PowerShell EX is Better Than Other Extensions
vs. Official PowerShell Extension
Feature | PowerShell EX | Official Extension |
AI Agent Integration (MCP) | β Full support | β Not available |
Token-Optimised Output | β 85β99% savings | β Not applicable |
Autonomous Script Execution | β Yes | β Manual only |
Real-time PSScriptAnalyzer | β Instant feedback | β οΈ Delayed |
ISE Compatibility Mode | β Perfect emulation | β οΈ Partial |
Memory Footprint | β Lightweight | β Heavy |
Startup Time | β < 1 second | β 3-5 seconds |
Native TabExpansion2 | β Full support + cache | β Yes |
π― Key Advantages
π° Token-Optimised for AI Agents
Every byte returned to an AI costs money. PowerShell EX aggressively minimises output:ANSI escape codes stripped automatically (invisible to AI, waste tokens)
invoke_cmdletreturns only meaningful fields βGet-Processgoes from 911 KB β ~300 bytes (β99.9%)Compact JSON serialisation (no pretty-print whitespace)
Output capped at configurable
maxOutputchars (default 4 000)Completions cached for 5 s β no redundant process spawns
π€ AI-First Architecture
Built from the ground up for AI agents. MCP protocol enables Antigravity's AI to write, execute, and debug PowerShell autonomously β no human intervention required.β‘ Lightning Fast
No bloated language server. Direct PowerShell execution with minimal overhead. Extension activates in under 1 second.π Secure Execution
Scripts are written to temp files β no shell injection possible. Input validation on all cmdlet names.π Smart Analysis
PSScriptAnalyzer integration via temp-file approach. Get actionable suggestions, not just warnings.π¨ Beautiful Themes
ISE-inspired themes for developers who love the classic look. Dark and light variants included.π Zero Configuration
Works out of the box. Auto-detects PowerShell 7 or falls back to Windows PowerShell 5.1.
Related MCP server: SitecoreMCP
β¨ Features
MCP Tools for AI Agents
Tool | Description | Key Params |
| Run PS code. ANSI stripped, output capped. |
|
| Lint with PSScriptAnalyzer. |
|
| TabExpansion2 completions. TTL-cached 5 s. |
|
| Get-Help for any cmdlet/topic. |
|
| Safe cmdlet execution. depth=2, smart fields. |
|
| Browse installed modules. Path excluded by default. |
|
MCP Resources
Resource | Description |
| PS version, OS, execution policy, current user |
| Full list of available modules |
Token Savings β Benchmarks
Operation | Before v1.2.0 | After v1.2.0 | Savings |
| 911 KB | ~300 bytes | β99.9% |
| 19 KB | ~3 KB | β84% |
ANSI codes in any output | +30% overhead | 0 | β100% |
| ~2 KB | ~700 bytes | β65% |
VS Code Integration
πΉ F8 β Run selection / current line in PS terminal
π Ctrl+F1 β Show help for symbol under cursor
π Real-time diagnostics via PSScriptAnalyzer (on save)
π‘ Hover docs for cmdlets (
Get-ADUser,Set-AzVM, etc.)π¨ Syntax highlighting for
.ps1,.psm1,.psd1,.pssc,.psrc
π¦ Installation
# Clone the repository
git clone https://github.com/mjojo/PowerShellEX.git
cd PowerShellEX
# Install dependencies
npm install
# Build
npm run buildOr install the pre-built VSIX directly:
code --install-extension powershell-ex-1.2.0.vsixπ§ Usage
In VS Code
PowerShell EX works out-of-the-box as a standard VS Code extension:
Execute Code: Select code and press
F8to run it in the terminal.Get Help: Place cursor on a cmdlet and press
Ctrl+F1for instant documentation.Diagnostics: PSScriptAnalyzer provides real-time feedback on file save.
Hover Docs: Hover over cmdlets for syntax and synopsis.
In Antigravity (AI Agents)
Add to your Antigravity MCP settings (.gemini/antigravity-ide/mcp_config.json):
{
"mcpServers": {
"powershell": {
"command": "node",
"args": ["d:/Projects/PowerShellEX/dist/index.js"]
}
}
}Example β AI Agent calls
// Minimal β AI gets clean output, no ANSI noise
{ "tool": "execute_powershell", "code": "Get-Date" }
// Invoke cmdlet β returns only Name, Id, CPU (not 911 KB)
{ "tool": "invoke_cmdlet", "cmdlet": "Get-Process",
"parameters": { "Name": "pwsh" } }
// Completions β cached, fast, compact
{ "tool": "get_completions", "code": "Get-", "cursorPosition": 4 }
// Increase output cap for large scripts
{ "tool": "execute_powershell", "code": "...", "maxOutput": 20000 }π Requirements
Node.js 18+ (LTS recommended)
PowerShell 7+ (
pwsh) β auto-detected; falls back to Windows PowerShell 5.1PSScriptAnalyzer module (optional, for
analyze_scripttool)
# Install PSScriptAnalyzer
Install-Module -Name PSScriptAnalyzer -Scope CurrentUser -Forceπ οΈ Development
npm run build # Production build (TypeScript β dist/)
npm run watch # Watch mode with hot reload
npm run lint # ESLint
npm run package # Build + package β .vsixπΊοΈ Roadmap
MCP server with 6 AI agent tools
PSScriptAnalyzer integration (temp-file, injection-safe)
Token optimization β ANSI strip, compact JSON, output cap, TTL cache
Configurable execution timeout
Smart field selection in
invoke_cmdlet(depth=2, selectProperties)PowerShell 7 / Windows PowerShell auto-detection + fallback
GitHub Actions CI with automatic VSIX packaging
PowerShell Session Manager (persistent process, stateful sessions)
Debugging support (breakpoints, stepping via DAP)
Remote PowerShell sessions (SSH, WinRM)
PowerShell Notebook support (.psnb)
Performance profiler integration
π License
MIT Β© 2024-2026 Vitaly Golik (mjojo)
β Star this repo if you find it useful!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceA Model Context Protocol server that enables AI assistants to execute PowerShell commands, retrieve system information, manage modules, and run scripts on Windows systems.Last updated62
- AlicenseCqualityDmaintenanceA SitecoreMCP version that can be used in enterprisesLast updated100405Apache 2.0
- AlicenseAqualityFmaintenanceA comprehensive Model Context Protocol (MCP) server that enables Claude and other LLM applications to execute PowerShell commands, scripts, and perform system operations on Windows systems.Last updated1023MIT
- Alicense-qualityDmaintenanceWindows-focused MCP server for terminal automation with persistent PowerShell sessions, live session logs, and VS Code integrated terminal bridge.Last updatedMIT
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mjojo/PowerShellEX'
If you have feedback or need assistance with the MCP directory API, please join our Discord server