
Alephant Mcp
io.github.AlephantAIPublished by GitHub account AlephantAIv0.1.3Updated Oct 24, 2026
Alephant MCP server for AI cost control, BYO-key routing, 50+ providers, and 320+ models.
Overview
Local stdio MCP server for Alephant BYO-key AI cost control, exposing usage, budget and workspace FinOps analytics to an assistant.
- What you can do
- Check connection status and read usage summaries, daily costs, cost by model, and available models
- Inspect a virtual-key cockpit scope, budget and recent requests (read-only VK mode)
- Review workspace overview, budget status, subscription info, live 24h usage, timeseries and sparklines
- Manage virtual keys: list, create, update budgets and revoke
- Analyze agents, members and departments, set budget policies, diagnose cost anomalies, drill down spend, find idle resources and compare periods
- Run cost audit and cost optimization prompts
- When to use it
- Useful when you want an assistant to answer questions about AI spend, budgets and per-model or per-team costs in an Alephant workspace, or to manage virtual keys and budget policies from a chat client such as Cursor, Claude Desktop, Codex or Claude Code.
- Requirements
- Runs locally via npx from the npm package @alephantai/mcp, so Node.js is needed. Requires ALEPHANT_API_BASE_URL plus either ALEPHANT_VIRTUAL_KEY (read-only VK mode) or ALEPHANT_PAT with ALEPHANT_WORKSPACE_ID (Manager mode); the process exits if neither credential is set. Optional ALEPHANT_RATE_LIMIT_RPM defaults to 60. Network access to the Alephant API is required.
Installation
In SourceWeft
- Open Alephant Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Alephant MCP Server
Model Context Protocol server for Alephant BYO-KEY: FinOps metrics, virtual keys, and workspace analytics from Cursor, Claude Desktop, or any MCP host.
Modes
PAT takes precedence when ALEPHANT_PAT is non-empty. If neither VK nor PAT is set, the process exits with an error (no mock data).
Required (both modes): ALEPHANT_API_BASE_URL
Optional: ALEPHANT_RATE_LIMIT_RPM (default 60, use 0 to disable client-side throttling)
Windows / npx troubleshooting
From this repo’s root (alephant-mcp/): do not use npx -y @alephantai/mcp to “smoke test” the published package. npm treats the current directory as the local @alephantai/mcp project and does not link the root package’s bin into node_modules/.bin, so Windows then fails with 'alephant-mcp' is not recognized (or the Chinese CMD equivalent).
Use one of these instead while developing in the clone:
To verify npx the same way end users do, run it from any other directory (e.g. the parent folder):
From a normal project folder (after npm install @alephantai/mcp), you can also run:
If npx -y @alephantai/mcp still fails outside the clone, try:
Published packages 0.0.2+ include the bin/alephant-mcp.js shim for reliable npm bin resolution when installed from the registry.
MCP client config
Alephant MCP is a local stdio server. Use one server entry per credential scope. For multiple workspaces, create multiple entries with different names and environment variables.
Cursor / Claude Desktop
Virtual Key (read-only / scoped cockpit):
Personal Access Token (manager):
Use separate mcpServers entries per workspace when you have multiple PATs.
Codex
Add a stdio MCP server in ~/.codex/config.toml:
For Manager mode, replace the VK env with:
Verify with:
OpenCode
Add a local MCP server under mcp in your OpenCode config, for example opencode.json:
For Manager mode, use ALEPHANT_PAT and ALEPHANT_WORKSPACE_ID in environment instead of ALEPHANT_VIRTUAL_KEY.
Claude Code
Use the CLI to add Alephant as a local stdio server:
For a shared project config, create .mcp.json in the project root:
For Manager mode, replace the VK env with ALEPHANT_PAT and ALEPHANT_WORKSPACE_ID.
CLI audit
- VK: prints cockpit
scope+usage-summary(billing cycle). - Manager: prints workspace id +
GET /api/v1/analytics/overview.
Tools (summary)
Shared (both modes): check_alephant_connection, get_usage_summary, get_daily_costs, get_cost_by_model, list_available_models
VK only: get_my_scope, get_my_budget, get_my_recent_requests
Manager only: get_workspace_overview, get_workspace_budget_status, list_virtual_keys, create_virtual_key, update_key_budget, revoke_virtual_key, list_agents, get_agent_analytics, list_members, get_member_analytics, list_departments, get_department_analytics, get_subscription_info, set_budget_policy, get_live_24h, get_usage_timeseries, get_sparklines, diagnose_cost_anomaly, get_executive_dashboard, drill_down_spend, find_idle_resources, compare_entity_periods
get_request_logs is not included (JWT-only backend route).
Prompts & resources
- cost_audit_report — both modes
- cost_optimization — manager only
Documentation
- 中文:在 AI Agent 中如何使用 MCP — 自然语言提问示例、
/alephant-…快捷模板、工具对照表 - Marketplace submission: see
docs/marketplace-submission.mdfor official MCP Registry, Smithery, and Glama submission notes.
Development
Package
Published as @alephantai/mcp (alephant-mcp binary).
Source: README.md at commit c4f4a1f
Tools
0Version history
1- v0.1.3LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.