Vercel AI SDK MCP Server

Vercel AI SDK MCP Server

vercel-ai-sdk-mcp-project•bychiziuwaga

An MCP server that exposes Vercel AI SDK Core functions such as structured object generation and UI component generation as tools for AI development environments like Cursor.

License: ISC License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Wraps Vercel AI SDK Core functions such as generateObject, generateText, streamText and UI generation as MCP tools.
  • •Includes a ToolManager with a set_tool_category meta-tool to manage the number of active tools exposed.
  • •Can run locally over stdio and is configured for deployment on Smithery.

BEST FOR

  • •Performing structured object generation within Cursor via Vercel AI SDK tools.
  • •Running multi-MCP workflows where the AI chains this server with design and inspiration tools.

ABOUT VERCEL-AI-SDK-MCP-PROJECT

Vercel AI SDK MCP Server is cataloged as an MCP server attributed to chiziuwaga. An MCP server that exposes Vercel AI SDK Core functions such as structured object generation and UI component generation as tools for AI development environments like Cursor. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: ISC License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Vercel AI SDK MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server require an OpenAI API key?

Yes, an OpenAI API key is required for full functionality of the Vercel AI SDK tools.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 2845e8c738c4 · 采集于 2026-11-13 11:26:23 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Vercel AI SDK MCP Server Project

smithery badge

This repository contains a Model Context Protocol (MCP) server designed to expose capabilities of the Vercel AI SDK Core to AI development environments like Cursor. It allows leveraging features like generateObject, generateText, streamText, and UI generation alongside other MCP servers (like mcp-figma and magic-mcp via Smithery).

Core Features

  • Vercel AI SDK Integration: Provides MCP tools wrapping core Vercel AI SDK functions (generate_object, generate_ui_component, etc.).
  • Tool Categorization: Implements a ToolManager with a set_tool_category meta-tool to manage the number of active tools exposed to Cursor, keeping within reasonable limits.
  • Figma/Magic MCP Placeholders: Includes placeholder connectors and tool registrations for mcp-figma and magic-mcp, intended for orchestration via Cursor AI (Pathway 2).
  • Smithery Deployment Ready: Configured with Dockerfile and smithery.yaml for easy deployment on Smithery.ai.
  • Cursor Integration: Designed to be used within Cursor via the .cursor/mcp.json configuration.

Architectural Approach (Pathway 2 Orchestration)

This server is primarily designed to be one component in a multi-MCP workflow orchestrated by the AI within Cursor (Pathway 2).

The intended workflow involves:

  1. Using prompts and Cursor Rules (.cursor/rules/) to guide the AI.
  2. Making sequential calls to different MCP servers:
    • mcp-figma (via Smithery) for design extraction.
    • magic-mcp (via Smithery) for inspiration/component building.
    • This vercel-ai-sdk-mcp server for Vercel AI SDK specific tasks (like structured generation).
  3. The AI combines context from each step to achieve the final goal.

While a composite tool (generate_enhanced_component_from_figma) demonstrating direct server-to-server interaction (Pathway 1) exists in the code (src/integrations/crossIntegration.ts), it requires implementing functional MCP clients within the connectors and is not the primary intended usage pattern for this setup.

Prerequisites

  • Node.js (v20 or later recommended)
  • npm
  • Git
  • Cursor
  • Smithery Account (for deployment)
  • API Keys:
    • OpenAI API Key (Required)
    • Figma API Key (Required for implementing Figma integration)
    • 21st Dev API Key (Required for implementing Magic MCP integration)

Local Setup

  1. Clone Repository:
    git clone https://github.com/chiziuwaga/vercel-ai-sdk-mcp-project.git
    cd vercel-ai-sdk-mcp-project
    
  2. Install Dependencies:
    npm install
    
  3. Create .env File: Copy .env.example to .env and fill in your API keys:
    OPENAI_API_KEY=sk-your-openai-key
    ANTHROPIC_API_KEY=sk-ant-your-anthropic-key # Optional
    FIGMA_API_KEY=your-figma-key              # For future implementation
    TWENTY_FIRST_API_KEY=your-21st-key        # For future implementation
    TRANSPORT_TYPE=stdio                      # Keep as stdio for local
    PORT=3000                                 # Only used if TRANSPORT_TYPE=sse
    
  4. Build the Code:
    npm run build
    
  5. Run Locally:
    npm run start
    
    The server will be running using stdio, waiting for connections.

Cursor Integration (Local)

To use the local server in Cursor:

  1. Ensure mcp-figma and magic-mcp are runnable via npx locally.

  2. Modify your workspace .cursor/mcp.json to run this server directly with Node:

    {
      "mcpServers": {
        "magic-mcp": { ... }, // Keep existing Smithery config
        "mcp-figma": { ... }, // Keep existing Smithery config
        "vercel-ai-sdk-mcp": {
          "command": "node",
          "args": ["dist/index.js"], // Path relative to workspace root
          "env": { // Pass keys directly for local run
            "OPENAI_API_KEY": "${OPENAI_API_KEY}",
            "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
            "FIGMA_API_KEY": "${FIGMA_API_KEY}",
            "TWENTY_FIRST_API_KEY": "${TWENTY_FIRST_API_KEY}",
            "TRANSPORT_TYPE": "stdio"
          }
        }
      }
    }
    
  3. Make sure the ${API_KEY} variables are accessible in your environment where Cursor can read them.

Usage Example (Pathway 2)

  1. Ensure MCP Servers are running (locally or configured via Smithery in .cursor/mcp.json).

  2. Create Cursor Rules: Add rule files in .cursor/rules/ to guide the AI (see section below).

  3. Prompt Cursor AI: Give a multi-step prompt like the User Story described previously, instructing the AI to call tools sequentially across mcp-figma, magic-mcp, and vercel-ai-sdk-mcp.

    Example Snippet:

    "First, use mcp-figma's extract_figma_design... Then use magic-mcp's inspiration tool... Finally, use vercel-ai-sdk-mcp's generate_ui_component with the combined context..."
    

Cursor Rules (.cursor/rules/)

Effective use of the Pathway 2 orchestration relies on creating guidance rules for the Cursor AI. You must create a .cursor/rules/ directory in your project root and add rule files (e.g., figma.cursorule, magic.cursorule, vercel.cursorule).

  • These files should contain natural language instructions on:
    • Which tools to use from each MCP server for specific tasks.
    • How to structure prompts for those tools.
    • How to pass context (data) between sequential tool calls.
    • Standard workflows (e.g., Figma -> Magic -> Vercel).

Refer to the Cursor Rules Documentation for syntax and examples.

Deployment (Smithery)

  1. Push to GitHub: Ensure your latest code, including Dockerfile and smithery.yaml, is pushed to the main branch on GitHub.
  2. Go to Smithery.ai: Log in and find/add your chiziuwaga/vercel-ai-sdk-mcp-project server.
  3. Deploy: Go to the "Deployments" tab and click "Create Deployment".
  4. Configure: Provide the required API keys (openaiApiKey, etc.) when prompted by Smithery. These are stored securely.
  5. Launch: Start the deployment process. Smithery builds the Docker image and runs the container.

Cursor Integration (Deployed)

Once deployed on Smithery:

  1. Update your .cursor/mcp.json to use the Smithery CLI runner for your server (this should match the current content):

    {
      "mcpServers": {
        "magic-mcp": { ... }, // Keep existing Smithery config
        "mcp-figma": { ... }, // Keep existing Smithery config
        "vercel-ai-sdk-mcp": {
          "command": "npx",
          "args": [
            "-y", "@smithery/cli@latest", "run",
            "chiziuwaga/vercel-ai-sdk-mcp-project",
            "--config",
            // Ensure these env vars are available to Cursor
            "{"openaiApiKey":"${OPENAI_API_KEY}", "anthropicApiKey":"${ANTHROPIC_API_KEY}", "figmaApiKey":"${FIGMA_API_KEY}", "twentyFirstApiKey":"${TWENTY_FIRST_API_KEY}", "transportType":"stdio"}"
          ]
        }
      }
    }
    
  2. Ensure the ${API_KEY} variables referenced in the --config JSON string are accessible to Cursor from your environment.

Configuration

API Keys are required for full functionality:

  • OPENAI_API_KEY: Required for Vercel AI SDK tools. Provide during Smithery deployment config or in .env for local runs.
  • ANTHROPIC_API_KEY: Optional, for Anthropic models.
  • FIGMA_API_KEY: Required only when FigmaConnector is implemented.
  • TWENTY_FIRST_API_KEY: Required only when MagicMcpConnector is implemented.

Placeholders & Future Work

  • Implement Connectors: The src/integrations/figma/connector.ts and src/integrations/magicMcp/connector.ts contain placeholders. They need to be implemented with actual API calls (for Figma) and MCP client logic (potentially for Magic MCP, depending on its interface) to enable the integration tools.
  • Add More Tools: Implement the remaining Vercel AI SDK tools (text generation, streaming, chat, code gen, etc.) as outlined in the specs.
  • Error Handling: Enhance error handling, especially around missing API keys.
  • Testing: Add automated tests.

License

ISC License (as per package.json).

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Vercel AI SDK MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/vercel-ai-sdk-mcp-project)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools