How to Use the Alegra MCP in Claude Code
Pipe live Alegra ERP data directly into your shell scripts and CI/CD pipelines with Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Alegra MCP to Claude Code
Create your Vinkius account to connect Alegra to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate Checks in Your CI Pipeline
This MCP Server lets you add business logic checks to your deployment process. For example, before deploying a new e-commerce feature, you can have a GitHub Action call Claude Code to run a script that confirms key products are in stock using `list_inventory_items`. If stock is low, the build fails. You can script checks against any of the Alegra tools. Use `list_invoices` to ensure the billing system is responsive or `list_contacts` to validate a service connection. It’s a simple way to make your CI pipeline aware of real-world business status.
Run Business Reports from the Terminal
The Alegra tools are fully accessible from your command line with Claude Code. You can write a simple shell script to generate a daily sales report by calling `list_invoices` with today's date and piping the output to a file or another command. It’s perfect for cron jobs. Combine tools for more complex reports. For instance, get a list of recent payments with `list_payments`, then use `get_contact_details` in a loop to append the payer's name to each line. Since it's all in the terminal, you can use `grep`, `awk`, and `sed` to format the output exactly how you want it.
Manage Alegra via SSH or Cron with Claude Code
With this MCP server, you don't need a UI to manage your business operations. You can SSH into a server and use Claude Code to create a new sales invoice with `create_invoice` or add a new provider with `create_contact`. The output is clean text, ideal for headless environments. This is useful for building custom integrations or bots. You could have a script that listens to an event queue and, upon receiving a message, uses Claude Code to query for estimate details with `get_estimate_details`. It's a direct, scriptable interface to your Alegra account.
Set up Alegra MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seealegra-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Alegra transactions." It will automatically discover and invoke the available Alegra tools.
claude mcp add --transport http alegra-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Alegra MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Alegra MCP today
We host it, we monitor it, we maintain it. You just paste one token.