Vara MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Vara MCP Server
Build Vara Network smart programs 40-100x faster with AI-assisted development in Cursor IDE.
A production-ready Model Context Protocol (MCP) server that lets you scaffold, compile, test, and generate TypeScript clients for Vara Network smart programs using natural language.
π Before vs After
β Before: Traditional Vara Development
π Manual Steps Required β±οΈ Time
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1. Research Sails docs & examples 30-60 min
2. Manually create Cargo.toml, lib.rs, build.rs 15-30 min
3. Write service, program, events from scratch 30-60 min
4. Debug build errors (targets, crate-types) 15-45 min
5. Run cargo build, fix errors, repeat 5-10 min
6. Research gear-js API for client code 45-90 min
7. Write TypeScript client from scratch 30-45 min
8. Set up tests with gtest 20-30 min
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Total: 3-6 hours for a basic counter program π«β After: With vara-mcp-server
π¬ Just Ask in Cursor β±οΈ Time
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
"Create a Vara MVP called my-counter" ~2 min
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Complete Rust program with Sails
β Service with state, commands, queries, events
β Proper Cargo.toml with all dependencies
β Build script for WASM compilation
β TypeScript client with full API
β Ready to deploy!
Total: ~2 minutes ππ Speed Comparison
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Time to First Working Program β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Traditional ββββββββββββββββββββββββββββββββββββ 3-6 hours β
β β
β With MCP ββ ~2 minutes β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββ β
β 40-100x faster β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββRelated MCP server: Varo MCP
π¦ Installation
npm install -g vara-mcp-serverβοΈ Cursor IDE Setup
Add to your .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"vara-mcp": {
"command": "npx",
"args": ["vara-mcp-server"]
}
}
}Restart Cursor after adding the configuration.
π οΈ Available Tools
Tool | Description | Example |
| Create new Vara program from template | "Create a counter program called my-dapp" |
| Compile to optimized WASM | "Compile my-dapp in release mode" |
| Run program tests | "Run tests for my-dapp" |
| Generate TypeScript client | "Generate a client for my-dapp" |
| Search Vara/Sails documentation | "How do I emit events in Sails?" |
π¬ Available Prompts
Create a Vara MVP
Runs the complete workflow automatically:
Scaffold β Compile β Test β Generate ClientAdd Feature to Program
Get guidance on adding new features to existing programs with code suggestions.
π Available Resources
Access bundled documentation directly in Cursor:
Vara Sails Quickstart - Getting started guide
Build Targets & Gotchas - Common issues and solutions
Gear-JS Interaction Basics - JavaScript SDK guide
π― Example Usage
1. Create a New Program
In Cursor chat:
Create a Vara smart program called "my-token" using the counter template2. Compile to WASM
Compile my-token in release modeOutput (in target/wasm32v1-none/wasm32-gear/release/):
β my_token.opt.wasm
β my_token.idl
β my_token.wasm3. Generate TypeScript Client
Generate a TypeScript client for my-token4. Use the Client
import { MyTokenClient } from './my-token-client';
const client = new MyTokenClient();
await client.connect('wss://testnet.vara.network');
await client.initKeyring(process.env.VARA_SEED);
// Upload program
const programId = await client.uploadProgram({
wasmPath: './target/wasm32v1-none/wasm32-gear/release/my_token.opt.wasm'
});
// Interact
await client.sendMessage({ payload: { Counter: { Increment: null } } });
const state = await client.readState();π Security
This server implements strict security measures:
Feature | Implementation |
Command Allowlist | Only |
Path Sandboxing | All file operations restricted to workspace root |
No Shell Execution | Commands spawned directly with |
No Secret Persistence | Secrets read from env vars only, never logged |
See security.md for details.
π§ͺ Development
Prerequisites
Node.js 18+
pnpm 9+
Rust toolchain (for testing builds)
WASM target for Vara:
rustup target add wasm32v1-none
Setup
git clone https://github.com/Adityaakr/vara-mcp-server.git
cd vara-mcp-server
pnpm install
pnpm build
pnpm testRun Locally
node packages/server/dist/index.jsπ Project Structure
vara-mcp-server/
βββ packages/
β βββ server/ # MCP server entry point
β βββ runtime/ # Safe execution utilities
β βββ templates/ # Sails program templates
β βββ chain/ # TypeScript client generator
βββ docs/
β βββ cursor-setup.md
β βββ security.md
β βββ troubleshooting.md
βββ README.mdπ Troubleshooting
cargo not found
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shBuild output location
Run `rustup target add wasm32v1-none`, then `cargo build --release`. All artifacts are in one folder: `target/wasm32v1-none/wasm32-gear/release/` (.opt.wasm, .idl, .wasm).
Server not connecting in Cursor
Check path in
.cursor/mcp.jsonRestart Cursor completely
Enable debug mode:
"env": { "VARA_DEBUG": "true" }
See troubleshooting.md for more solutions.
π€ Contributing
Contributions are welcome! Please read CONTRIBUTING.md for guidelines.
π License
MIT Β© Aditya Kumar
π Links
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, validate, test-run and publish AIOS workflows from Claude Code, Codex, Cursor or VS Code.
Build, deploy, and sell AI agents for local-service businesses - from your IDE.
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Solana blockchain, manage accounts and tokens, and develop and deploy smart contracts end-to-end.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to generate images, videos, and audio via the Varo Generate API, and manage blockchain registrations and account operations through natural language.MIT
- FlicenseAqualityDmaintenanceEnables natural-language interaction with Solana blockchain dataβincluding network status, wallet balances, transactions, and token supplyβvia the Helius RPC API in MCP clients like Cursor.8-
- AlicenseAqualityBmaintenanceEnables AI assistants to scaffold VTEX IO apps and Node/GraphQL services, look up Store Framework block props and VTEX APIs, and search documentation and courses.950 npmMIT