Skip to main content
Glama

v0 MCP Server

v0 Platform APIを使って自然言語の要件からプロトタイプのURLを返すMCPサーバーです。

機能

  • generate_prototype: 自然言語の要件を受け取り、v0 Platform APIを使ってプロトタイプを生成し、デモURLを返します

セットアップ

  1. 依存関係のインストール:

npm install
  1. 環境変数の設定: MCPクライアント側で以下の環境変数を設定してください:

V0_API_KEY=your_v0_api_key_here
  1. ビルド:

npm run build

使用方法

MCPクライアントでの使用

MCPクライアントの設定で以下のようにサーバーを追加します:

{ "mcpServers": { "v0-mcp-server": { "command": "node", "args": ["/path/to/v0-mcp-server/dist/index.js"], "env": { "V0_API_KEY": "your_v0_api_key_here" } } } }

ツールの使用例

const result = await mcpClient.callTool('generate_prototype', { requirements: 'Reactを使ったTODOアプリを作成してください。ダークモード対応で、ローカルストレージに保存する機能も含めてください。' }); // 成功時のレスポンス例: // { // "success": true, // "chatId": "chat_123", // "demoUrl": "https://v0.dev/chat/demo_url", // "files": [...], // "createdAt": "2025-01-xx T xx:xx:xx.xxxZ" // }

開発

テスト実行

MCPインスペクターを使用してテストできます:

npm run inspector

ブラウザでインスペクターUIが開き、ツールの動作を確認できます。

開発モード

npm run dev

API

generate_prototype

パラメータ:

  • requirements (string, 必須): プロトタイプの要件を自然言語で記述

  • model (string, オプション): 使用するモデル ("v0-1" | "v0-2", デフォルト: "v0-2")

戻り値: 成功時は生成されたプロトタイプのURL、ファイル情報、チャットIDを含むJSONを返します。 エラー時はエラー情報を含むJSONを返します。

-
security - not tested
F
license - not found
-
quality - not tested

Related MCP Servers

  • A
    security
    F
    license
    A
    quality
    An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
    Last updated -
    4
    2,558
    3,938
    • Linux
    • Apple
  • A
    security
    A
    license
    A
    quality
    Provides pre-defined prompt templates for AI assistants to generate comprehensive plans for TypeScript projects, API architectures, and GitHub workflows.
    Last updated -
    1
    2
    MIT License
  • -
    security
    -
    license
    -
    quality
    Fetches up-to-date, version-specific documentation and code examples from the source and adds them to your LLM prompts, helping eliminate outdated code generations and hallucinated APIs.
  • A
    security
    F
    license
    A
    quality
    Enables AI-driven frontend component design and code generation from natural language requirements. Supports Vue, React, and Angular with intelligent component decomposition, API design, and complete project generation.
    Last updated -
    4
    3

View all related MCP servers

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/putchom/v0-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server