Logo Venice MCP Server

Venice MCP Server

Tổ chức
veniceai

Venice AI MCP Server for Claude Code, Cline, and AI agents

Nhà phát hànhveniceai
Kho mãvenice-mcp-server
Ngôn ngữTypeScript
Bản fork
8
Sao
72
Công cụ có sẵn
0
Phương thức truyền tảistdio
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Venice MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    72 sao và 8 bản fork từ kho mã được liên kết.

@veniceai/mcp-server

Model Context Protocol server for the Venice API - uncensored, private AI for any MCP host (Claude Desktop, Cursor, ChatGPT, LM Studio, Continue, LibreChat, Open WebUI, AnythingLLM, Jan, Le Chat).

npm License: MIT

Plug Venice's chat, image, video, audio, music, and character models into any agent in 30 seconds, including billing and API-key operations. 45 tools across all modalities, one config block.

Requires Node.js 20 or newer; Node.js 22 or 24 is recommended. CI tests Node.js 20, 22, and 24. The refreshed MCP SDK dependency graph requires Node.js 20 for fresh installs, so upgrade Node.js before installing this version if you previously used Node.js 18.

Quick start

1. Get a key from venice.ai

See the API key guide for step-by-step instructions.

2. Add this to your MCP host config

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows), Cursor (~/.cursor/mcp.json), LM Studio, etc:

json
{
  "mcpServers": {
    "venice": {
      "command": "npx",
      "args": ["-y", "@veniceai/mcp-server@0.3.0"],
      "env": { "VENICE_API_KEY": "<your-venice-api-key>" }
    }
  }
}

3. Restart your MCP host

That's it. Type a prompt — your agent now has chat, image, video, music, TTS, ASR, and 39 more Venice tools.

What you get

45 tools spanning every Venice modality plus billing and API-key operations, 3 resources (venice://models, venice://styles, venice://voices) and 3 prompt templates (uncensored research, NSFW creative writing, image style explorer). The voices resource is built live from each TTS model's catalog metadata.

Every tool declares explicit readOnlyHint, destructiveHint, idempotentHint and openWorldHint annotations to help hosts decide when to request approval. Video and music status tools are marked destructive because their optional delete_media_on_completion argument can delete stored media before returning the result. Hints describe a tool's possible behavior; hosts should still enforce their own approval policy.

💬 Chat & embeddings

ToolDescription
venice_chatChat completions with documented text/image/audio/video/file blocks, structured response formats, function tools, prompt caching, and reasoning controls. Calls are plaintext and non-streaming.
venice_responsesAlpha, stateless Responses API for text models. Supports text/image input and reasoning controls. E2EE-capable models are not supported, and this tool does not expose unreliable tool fields.
venice_embeddingsCompute embeddings for text input (OpenAI-compatible).
venice_chat_with_characterChat with a Venice character by slug.

🎨 Image

ToolDescription
venice_image_generateGenerate an image. Supports model-specific width/height or free-string aspect_ratio/resolution, quality tiers, prompt enhancement, style references, web search, variants, and output format.
venice_image_editEdit an image with a prompt. Supports free-string sizing, output format, and prompt enhancement; returns a base64 image.
venice_image_multi_editEdit multiple images together with a single prompt (multi-image composition / outpainting), including free-string sizing, quality, output format, and prompt enhancement.
venice_image_upscaleUpscale an image (2–4× scale, with a creativity control). Returns base64 PNG.
venice_image_remove_bgRemove image background; returns a transparent PNG.
venice_image_stylesList image style presets available for venice_image_generate.

🎬 Video

ToolDescription
venice_video_generateQueue a video generation. Supports Sora 2, Veo 3.1, Kling, Wan, LTX 2, Seedance (incl. r2v video-to-video), Runway Gen-4, and others. Accepts image, video, audio, reference inputs, and the Seedance consent attestation flow where applicable.
venice_video_statusCheck status of a queued video job. Returns JSON progress while PROCESSING, then either an embedded MP4 or a download_url resource link. Pass the queue-time download_url for VPS / Grok Imagine Private models.
venice_video_completeMark a completed video as downloaded. Reports server-side deletion only when Venice confirms success.
venice_video_quoteGet a price quote for a video generation BEFORE queuing.

🔊 Audio (TTS / ASR)

ToolDescription
venice_ttsConvert text to speech. Supports cloned voices, temperature, and Venice's streaming flag; MCP returns the completed audio as one buffered result.
venice_asrTranscribe audio from a URL as JSON or text, with optional word and character timestamps.
venice_voice_cloneDiscover live model-scoped voice metadata, or clone a voice from a sample audio URL for tts-chatterbox-hd (default) or tts-minimax-speech-02-hd. Cloned voices are returned as a vv_<id> handle to pass as the venice_tts voice.
venice_audio_quoteGet a price quote for music generation BEFORE queuing.

🎵 Music

ToolDescription
venice_music_generateQueue music generation. Uses the live QueueAudioRequest fields: force_instrumental, lyrics_prompt, lyrics_optimizer, loop, voice, language_code, speed, and model-specific duration_seconds. Deprecated instrumental / lyrics are still accepted as aliases.
venice_music_statusCheck status of a queued music job. Returns JSON progress while PROCESSING, then either embedded audio or a download_url resource link.
venice_music_completeMark a completed music job as downloaded and delete server-side media.

🌐 Web augment

ToolDescription
venice_web_searchSearch with Brave (default, Zero Data Retention) or Google (proxied/anonymized by Venice). Returns the parsed { query, results } as structured content.
venice_web_scrapeScrape one URL into markdown text.
venice_text_parserExtract text from a document URL (PDF, DOCX, EPUB, PPTX, XLSX, …).

📚 Catalog

ToolDescription
venice_list_modelsPage through the live model catalog, every type by default, with server-side filtering for asr, decision, embedding, image, music, text, tts, upscale, inpaint, video, all, code, or any newer catalog type. Returns compact summaries (50 per page by default, up to 200) with total, next_offset, and every matching model id; set verbose for full model objects.
venice_model_detailsGet one exact model's full catalog row, including model_spec constraints, capabilities, and pricing.
venice_model_traitsGet the live trait-name to model-id mapping for a model type.
venice_model_compatibility_mappingGet compatible model-name to Venice model-id mappings.
venice_list_charactersList public Venice characters with search, tag/category/model, content, capability, sort, and pagination filters. API key only.
venice_get_characterGet a public character by slug. API key only.
venice_character_reviewsList paginated public reviews for a character. API key only.

🔐 TEE attestation

ToolDescription
venice_tee_attestationFetch Intel TDX attestation evidence, optional NVIDIA evidence, and the model signing key using a caller-generated 32-byte nonce.
venice_tee_signatureFetch the enclave response-signature payload for a chat completion request ID.

Both routes are currently live without authentication. They only apply to text models advertising supportsTeeAttestation. These tools expose evidence; they do not verify it, and this server does not encrypt chat. venice_chat rejects enable_e2ee.

Both chat tools retain the upstream completion id and actual model, when present, in structuredContent. Only responses with the upstream X-Venice-TEE: true header also include those values in an additional JSON text block for text-only clients. Pass those values to venice_tee_signature to retrieve the signature for that completion. Ordinary responses keep their existing answer text without an extra metadata block; the first block and tool-call fallbacks are unchanged. The header is an upstream indication, not cryptographic verification.

Media API behavior

  • Successful upstream responses have a default 16 MiB limit, including JSON and text without a declared Content-Length. Tool-specific image, video, audio, transcription, billing, and RPC limits take precedence. Oversized responses fail without a partial result; an inference may already have completed and incurred a charge before the limit is reached. There is no environment override for this default.
  • venice_embeddings accepts at most 128 texts per call, for both float and base64 output. Larger batches are rejected locally before submission, so the rejected batch incurs no upstream charge. Split larger jobs into separate calls; the server never automatically splits or retries a batch. This conservative limit avoids the observed overflow for a 256-text, 4,096-dimension float response, but is not a byte-size guarantee for every model or response encoding. The 16 MiB guard still applies, and an unusually large response from an accepted batch can still be rejected after processing upstream.
  • Upstream API redirects are rejected to keep credentials and request bodies at the configured API origin.
  • Image aspect_ratio and resolution values remain free strings because supported values vary by model. Venice validates them. When enhance_prompt is applied, image generate/edit/multi-edit results include the URL-decoded enhanced_prompt returned in x-venice-enhanced-prompt. Image responses are capped at VENICE_MAX_IMAGE_RESPONSE_BYTES (default 32 MiB). Unlike an oversized video, an oversized image result cannot be retried for free, so request fewer variants, a lower resolution, or jpeg/webp output for large batches.
  • Current public Seedance models may reject media containing detectable persons outright. Defensive support remains for compatible or legacy needs_consent responses: the tool returns Venice's policy text, affected media roles, and next step. The three consents.seedance flags are legal attestations and must only be set to true after the user explicitly confirms all three statements. Consent is never a content-policy bypass.
  • Completed videos may arrive as video/mp4 or as JSON with a download_url. Binary completions are returned as an embedded MCP resource (blob, mimeType: "video/mp4", synthetic venice://video/... URI), streamed into a bounded buffer that defaults to 25 MiB (VENICE_MAX_VIDEO_RESPONSE_BYTES). Oversized binary results remain queued and can be retried with the same queue ID after changing the limit. JSON completions return the download_url as an MCP resource link instead of fetching that URL. Because that link stops working once the stored media is removed, delete_media_on_completion is not applied to download_url results: download the file first, then call venice_video_complete (and optionally send an HTTP DELETE to the link to revoke it). For VPS / Grok Imagine Private models, download_url is returned only on queue; pass that URL into venice_video_status so a COMPLETED retrieve without an inline URL still yields a resource link.
  • Music retrieval returns JSON status and timing while processing, then an audio/* body when complete (including MP3, WAV, FLAC, and M4A). Completed tracks are returned as embedded MCP blob resources with a synthetic venice://music/... URI and buffered up to 32 MiB by default (VENICE_MAX_AUDIO_RESPONSE_BYTES). That configurable limit applies only to binary media; successful status JSON uses a separate fixed 1 MiB safety limit. Oversized, empty, or non-audio responses are not deleted, so the same queue ID remains available for cleanup or a retry with a higher limit. JSON completions with a download_url return it as an MCP resource link; as with video, delete_media_on_completion is not applied to them: download the file first, then call venice_music_complete.

⛓️ Crypto

ToolDescription
venice_crypto_networksList the live network slugs supported by the crypto RPC proxy. No authentication required.
venice_crypto_rpcProxy one JSON-RPC request or a batch of up to 100 requests. Returns compact JSON (max 64 KiB) plus Venice's credit, cost, and idempotent-replay headers. Transaction broadcasts must be sent as single requests with idempotency_key.

💰 Billing (ADMIN API key only)

ToolDescription
venice_billing_balanceGet current USD, DIEM, and bundled-credit availability.
venice_billing_usage_analyticsGet beta aggregate usage by date, model, and API key using a lookback or custom date range.
venice_billing_usage_historyWalk detailed usage with cursor pagination, first-page filters, and JSON or CSV output.

Usage-history first pages default to 10 rows. JSON and CSV pages are returned whole, never truncated. A page exceeding 64 KiB returns an error without partial rows or a continuation cursor; restart with the original filters and a smaller page_size (minimum 10), or a narrower timestamp range. Retrying the same cursor cannot reduce the page size encoded in it.

Usage-history continuation calls must send cursor without the original filters. CSV pages return a csv:-prefixed nextCursor so a cursor-only follow-up stays on text/csv. The deprecated /billing/usage route is not wrapped. Billing tools require an ADMIN VENICE_API_KEY and fail locally instead of falling back to SIWX. Inference keys cannot call these endpoints.

🔑 API keys

ToolDescription
venice_list_api_keysList active key metadata without full key secrets. ADMIN API key only.
venice_get_api_keyGet one key's metadata, usage, balances, and rate limits. ADMIN API key only.
venice_api_key_rate_limitsGet current balances, access status, tier, and model limits. API key only.
venice_api_key_rate_limit_logsGet the last 50 exceeded rate-limit events. ADMIN API key only; experimental upstream.

List, get, and rate-limit logs require an ADMIN VENICE_API_KEY. venice_api_key_rate_limits accepts an INFERENCE or ADMIN key. These tools never forward SIGN-IN-WITH-X. Web3 challenge and mint are not registered here.

💳 x402 wallet helpers

Optional — only needed if you authenticate with a wallet via x402 instead of an API key. See x402 — pay with a wallet.

ToolDescription
venice_x402_balanceCheck the prepaid x402 credit balance for a wallet address.
venice_x402_top_up_infoFetch the top-up payment requirements: the accepted Base and Solana USDC options, each with network, asset, receiver wallet, and minimum amount. Takes no arguments.
venice_x402_transactionsList recent x402 top-up + debit transactions for a wallet.

Configuration

Env varDefaultNotes
VENICE_API_KEY(none)Your Venice API key. The simplest setup.
VENICE_DEFAULT_CHAT_MODELdeepseek-v4-flash-0731
VENICE_DEFAULT_IMAGE_MODELflux-2-pro
VENICE_DEFAULT_TTS_MODELtts-kokoro
VENICE_DEFAULT_ASR_MODELopenai/whisper-large-v3
VENICE_DISABLE_NSFW0Set to 1 to remove NSFW capability notes from tool descriptions.
VENICE_HTTP_TIMEOUT_MS60000
VENICE_MAX_VIDEO_RESPONSE_BYTES26214400 (25 MiB)Maximum completed MP4 bytes buffered and base64-embedded by venice_video_status.
VENICE_MAX_IMAGE_RESPONSE_BYTES33554432 (32 MiB)Maximum response bytes buffered by venice_image_generate, venice_image_edit, venice_image_multi_edit, venice_image_upscale, and venice_image_remove_bg. Larger results are discarded with an error.
VENICE_MAX_AUDIO_RESPONSE_BYTES33554432 (32 MiB)Maximum audio bytes buffered and base64-embedded by venice_tts and venice_music_status. An oversized TTS result is discarded with an error; an oversized music result stays queued for a retry.
VENICE_SIWX_TOKEN(none)x402 wallet-mode auth token — see x402 — pay with a wallet.
PORT3333HTTP-mode listener.
VENICE_MCP_HOST127.0.0.1HTTP-mode bind address. Set to 0.0.0.0 for LAN/container exposure.
VENICE_MCP_AUTH_TOKEN(none)Bearer token required by /mcp whenever HTTP mode binds outside loopback. Use a long random value.
VENICE_MCP_ALLOW_UNAUTHENTICATED_HTTP0Emergency escape hatch for unauthenticated exposed HTTP mode. Use only behind a trusted authenticated proxy.
VENICE_MCP_MAX_SESSIONS100Maximum active Streamable HTTP sessions.
VENICE_MCP_SESSION_TTL_MS1800000Idle Streamable HTTP session lifetime before cleanup.

Self-hosting (Streamable HTTP)

/mcp is a credential-backed tool execution endpoint: callers can spend the configured Venice API key or x402 balance. When HTTP mode binds outside loopback, startup fails unless VENICE_MCP_AUTH_TOKEN is set, or VENICE_MCP_ALLOW_UNAUTHENTICATED_HTTP=1 is explicitly set behind a trusted authenticated proxy.

bash
docker run -p 3333:3333 \
  -e VENICE_API_KEY=<your-venice-api-key> \
  -e VENICE_MCP_AUTH_TOKEN=<choose-a-long-random-token> \
  ghcr.io/veniceai/venice-mcp-server:latest
# server at http://localhost:3333/mcp

Clients should send Authorization: Bearer <choose-a-long-random-token> with HTTP MCP requests. HTTP clients should create new sessions without an mcp-session-id header and then reuse the server-issued session ID; unknown or malformed caller-provided session IDs are rejected. For reproducible production installs, pin the npm package version as shown in the examples instead of using an unversioned latest install path.

Or run from source — see Development below.


x402 — pay with a wallet, no account required

Skip this section if you're using VENICE_API_KEY. Everything below is optional and only matters if you specifically want to pay with a crypto wallet instead of a Venice account.

Venice supports EVM SIWE or Solana SIWX wallet authentication backed by prepaid USDC credit on Base or Solana mainnet, in addition to the normal API key flow. This lets you use Venice with no email, phone, or KYC — your wallet is the only identity.

Two-line config

json
{
  "mcpServers": {
    "venice": {
      "command": "npx",
      "args": ["-y", "@veniceai/mcp-server@0.3.0"],
      "env": { "VENICE_SIWX_TOKEN": "<base64 signed SIWX payload>" }
    }
  }
}

The MCP server forwards the existing VENICE_SIWX_TOKEN env format using Venice's preferred SIGN-IN-WITH-X header.

How it works

ONE-TIME SETUP (per wallet)
  Sign an EVM SIWE or Solana SIWX message → produces a SIWX token (base64 JSON)
  Set VENICE_SIWX_TOKEN in this MCP server's env

TOP UP (when balance is low)
  POST /api/v1/x402/top-up  (no payment header)  →  402 + payment requirements
  Choose a Base or Solana USDC option and sign it in your wallet
  POST /api/v1/x402/top-up with PAYMENT-SIGNATURE: <signed>  →  Venice settles
  the payment and credits your prepaid balance

EVERY INFERENCE CALL
  MCP server sends SIGN-IN-WITH-X: <SIWX token>
  Venice → wallet → credit account → debits and runs inference

This MCP server never sees your private key. EVM/Solana SIWX signing and USDC payment signing happen in your wallet — the server forwards only the signed SIWX token. The top-up helper discovers requirements but does not accept or submit payment signatures.

The helper tools venice_x402_balance, venice_x402_top_up_info, and venice_x402_transactions make balance + top-up flow inspectable from inside the agent.

Why prepaid instead of per-call?

  • ⚡ Latency — once topped up, calls are sub-100ms (no on-chain settlement per call)
  • 🧮 Throughput — Coinbase CDP facilitator settles top-ups in batches
  • 🔒 Privacy — wallet ↔ credit account is the only identity link; no email/phone/KYC
  • 🪙 DIEM shortcut — wallets linked to a Venice user with DIEM staked consume from staking balance, no USDC needed
  • 💸 Min top-up $5 (anti-dust). Minimum balance to inference is $0.10.

Per-call HTTP 402 — not supported

Venice rejects payment headers on inference routes. The preferred PAYMENT-SIGNATURE header is only used when submitting a signed payment to /api/v1/x402/top-up; this MCP server does not submit payments. After an external top-up, Venice debits the wallet's off-chain credit account on inference.

Auth-mode coverage notes

Some Venice endpoints don't accept both auth modes:

ToolAPI keyx402Notes
venice_list_characters✓✗Character discovery endpoint is API-key only
venice_get_character✓✗Character discovery endpoint is API-key only
venice_character_reviews✓✗Character discovery endpoint is API-key only
venice_x402_balance✗✓Wallet-bound by design
venice_x402_transactions✗✓Wallet-bound by design
venice_x402_top_up_info✓✓Auth-free; same 402 response in both modes

Hybrid

Set both VENICE_API_KEY AND VENICE_SIWX_TOKEN — API key wins. SIWX is only used when the key is absent.


Architecture

┌──────────────────────┐        stdio  OR        ┌────────────────────────┐
│  MCP host            │      Streamable HTTP    │  @veniceai/mcp-server  │
│  (Claude / Cursor /  ├────────────────────────▶│  - 45 tools            │
│   ChatGPT / etc.)    │                         │  - 3 resources         │
└──────────────────────┘                         │  - 3 prompts           │
                                                 │  - header forwarder    │
                                                 └────────────┬───────────┘
                                                              │ HTTPS
                                                              │   Authorization: Bearer ***
                                                              │   OR
                                                              │   SIGN-IN-WITH-X: <SIWX>
                                                              ▼
                                                 ┌────────────────────────┐
                                                 │  Venice API            │
                                                 │  api.venice.ai         │
                                                 └────────────────────────┘

Tool reference (endpoints + auth modes)

Inference (API key OR x402 wallet)

ToolEndpoint
venice_chatPOST /v1/chat/completions
venice_responsesPOST /v1/responses
venice_embeddingsPOST /v1/embeddings
venice_image_generatePOST /v1/image/generate
venice_image_editPOST /v1/image/edit
venice_image_multi_editPOST /v1/image/multi-edit
venice_image_upscalePOST /v1/image/upscale
venice_image_remove_bgPOST /v1/image/background-remove
venice_video_generatePOST /v1/video/queue
venice_video_statusPOST /v1/video/retrieve
venice_video_completePOST /v1/video/complete
venice_ttsPOST /v1/audio/speech
venice_asrPOST /v1/audio/transcriptions
venice_voice_clone (create)POST /v1/audio/voices
venice_music_generatePOST /v1/audio/queue
venice_music_statusPOST /v1/audio/retrieve
venice_music_completePOST /v1/audio/complete
venice_web_searchPOST /v1/augment/search
venice_web_scrapePOST /v1/augment/scrape
venice_text_parserPOST /v1/augment/text-parser
venice_crypto_rpcPOST /v1/crypto/rpc/:network

Catalog & quotes (auth-free)

ToolEndpoint
venice_list_modelsGET /v1/models?type=… (type=all when omitted)
venice_model_detailsGET /v1/models?type=:type (exact ID match in the filtered catalog)
venice_model_traitsGET /v1/models/traits
venice_model_compatibility_mappingGET /v1/models/compatibility_mapping
venice_voice_clone (list) / venice://voicesGET /v1/models?type=tts
venice_image_stylesGET /v1/image/styles
venice_audio_quotePOST /v1/audio/quote
venice_video_quotePOST /v1/video/quote
venice_crypto_networksGET /v1/crypto/rpc/networks
venice_tee_attestationGET /v1/tee/attestation?model=:model&nonce=:64_hex_chars
venice_tee_signatureGET /v1/tee/signature?model=:model&request_id=:completion_id

Characters (API key only)

ToolEndpoint
venice_list_charactersGET /v1/characters
venice_get_characterGET /v1/characters/:slug
venice_character_reviewsGET /v1/characters/:slug/reviews
venice_chat_with_characterPOST /v1/chat/completions (with character_slug)

Billing and API-key reads (ADMIN API key only, except rate-limit tools)

ToolEndpoint
venice_billing_balanceGET /v1/billing/balance
venice_billing_usage_analyticsGET /v1/billing/usage-analytics
venice_billing_usage_historyGET /v1/billing/usage-history
venice_list_api_keysGET /v1/api_keys
venice_get_api_keyGET /v1/api_keys/:id
venice_api_key_rate_limitsGET /v1/api_keys/rate_limits (INFERENCE or ADMIN)
venice_api_key_rate_limit_logsGET /v1/api_keys/rate_limits/log (ADMIN)

x402 wallet helpers (SIWX reads + auth-free discovery)

ToolEndpoint
venice_x402_balanceGET /v1/x402/balance/:wallet
venice_x402_top_up_infoPOST /v1/x402/top-up (no payment)
venice_x402_transactionsGET /v1/x402/transactions/:wallet

Development

bash
npm install
npm run build             # generate dist/ locally
npm test                  # build, then run the full test suite
npm run test:unit         # unit tests only
npm run test:integration  # build, then spawn dist/cli.js + a mock Venice over real stdio JSON-RPC
npm start                 # stdio mode
npm run start:http        # http mode on :3333

dist/ is generated by npm run build and is intentionally ignored by git rather than committed. Published npm packages still include dist/; the prepublishOnly script rebuilds it before publication.

Test layout

test/
├── config.test.ts             # env parsing, defaults, header precedence
├── format.test.ts             # 402 formatter cases
├── venice-client.test.ts      # HTTP client + real mock Venice
├── tools.test.ts              # tool registry (45 tools) + endpoint/method/body mappings
├── integration.test.ts        # end-to-end JSON-RPC over stdio against a mock Venice
└── helpers/
    ├── stub-client.ts         # in-process VeniceClient stub
    └── mock-venice-server.ts  # real http.Server fake of Venice for integration tests

The integration suite spawns the compiled CLI and speaks JSON-RPC on its stdin/stdout, exercising initialize → tools/list → tools/call → resources/list → resources/read against a real HTTP mock Venice in three auth scenarios (API key only, SIWX only, no auth).

End-to-end with live Venice + Base EVM harness

test/e2e/ currently exercises the EVM rail against the real Venice API and real Base mainnet—not a mock. Venice and the MCP x402 helpers support both Base and Solana, but this harness generates a throwaway EVM wallet and signs SIWE + EIP-3009 payloads with viem. The wallet is persisted at .e2e-wallet.json (chmod 600, gitignored—never commit).

Each harness mode passes its intended credentials explicitly: wallet-mode children clear any inherited API key, and API-key children clear any inherited SIWX token. This keeps the two authentication runs independent even when the parent environment contains both credentials.

Phasenpm scriptCostWhat it tests
createtest:e2e:createfreeGenerate / reload wallet, print address + balance
emptytest:e2e:emptyfreeSIWX → MCP venice_chat → expect 402 with helpful diagnostics
topuptest:e2e:topup$5 USDC + gasSign EIP-3009 → POST /api/v1/x402/top-up → settle on-chain via CDP facilitator
fundedtest:e2e:funded~$0.001 / callSIWX → MCP venice_chat → real LLM completion charged to prepaid balance
balancetest:e2e:balancefreeRead on-chain USDC + Venice prepaid via venice_x402_balance tool
safetest:e2e:safefreecreate + empty + balance (no money spent)
bash
# Comprehensive — all 45 tools × both auth modes, side-by-side report (mint is always skipped)
env VENICE_API_KEY=<your-venice-api-key> npm run test:e2e:all-tools

FAQ

Do I have to deal with crypto? No. The simple path is VENICE_API_KEY + a normal Venice account. x402 is an option for users who want a wallet-only flow.

Where does the wallet's private key live? Not in this server. You sign the EVM SIWE or Solana SIWX message and any USDC top-up payment in your own wallet. The server only sees signed payloads and never accepts a private key.

Minimum top-up? $5 USD (anti-dust). Minimum balance to call inference is $0.10. Default suggested top-up is $10.

Privacy guarantees? No email, phone, or KYC is required on the SIWX path. venice_tee_attestation and venice_tee_signature return hardware evidence for the caller to verify. This server does not encrypt chat.

DIEM staking? If your wallet is linked to a Venice user with DIEM staked, calls consume from the staking balance instead of USDC credits — no top-up needed.

Getting 402 errors even though I have an API key? The most common cause is that VENICE_API_KEY isn't being forwarded to the MCP server process. Most MCP hosts (Claude Desktop, Cursor, Codex, etc.) only pass environment variables that are explicitly listed in the "env" block of your MCP config — system-level env vars are not automatically inherited. Make sure your config looks like this:

json
{
  "mcpServers": {
    "venice": {
      "command": "npx",
      "args": ["-y", "@veniceai/mcp-server@0.3.0"],
      "env": { "VENICE_API_KEY": "<your-venice-api-key>" }
    }
  }
}

If the key is missing or blank, the server falls back to x402 mode and returns a 402 payment challenge.


Disclaimer

Community-maintained. Provided as-is, with no warranty or SLA from Venice AI. Use at your own risk.

License

MIT

Dùng MCP Venice MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Venice MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Venice MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Venice MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "venice-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Venice MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Venice MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Venice MCP Server giúp tôi làm việc này không?
Venice MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Venice MCP Server.

Câu hỏi thường gặp

Máy chủ MCP Venice MCP Server dùng để làm gì?

Venice MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Venice MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Venice MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Venice MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Venice MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Venice MCP Server với TypingMind?

Venice MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Venice MCP Server cung cấp những công cụ nào trong TypingMind?

Venice MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Venice MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Venice MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇