File: mcp.md | Updated: 11/15/2025
Slash Forward
Docs Cookbook Providers Playground AI ElementsAI ElementsLeft sparkleRight sparkle AI GatewayGateway
Search...⌘KFeedback GitHub Vercel LogoSign in with Vercel
AI Elements supports the Model Context Protocol (MCP) for model-driven development.
The Model Context Protocol (MCP) is an open standard that allows AI assistants like Claude, Cursor, and other AI-powered tools to securely connect with external data sources and systems. Think of it as a "universal remote" that lets your AI tools access real-world data and functionality.
AI Elements supports MCP to supercharge your AI development workflow.
First, make sure you're using an AI development tool that supports MCP:
Depending on your AI tool, you'll need to edit one of these files:
.cursor/mcp.json.cursor/mcp.json.codeium/windsurf/mcp_config.jsonCopy and paste this configuration into your MCP config file:
.cursor/mcp.json
{
"mcpServers": {
"ai-elements": {
"command": "npx",
"args": [\
"-y",\
"mcp-remote",\
"https://registry.ai-sdk.dev/api/mcp"\
]
}
}
}
Close and reopen your AI application for the changes to take effect.
Test the integration by asking your AI assistant:
What AI Elements components are available for building an AI app?
If successful, your AI should be able to list and explain AI Elements components!
You can use AI Elements alongside other MCP servers:
.cursor/mcp.json
{
"mcpServers": {
"ai-elements": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://registry.ai-sdk.dev/api/mcp"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"]
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/project"]
}
}
}
Ask your AI assistant:
Show me how to use the AI Elements PromptInput component with different variants
Expected response will include current documentation and code examples.
Help me create an AI app layout using AI Elements components
Your AI can suggest appropriate layout components and provide implementation code.
What are the recommended spacing tokens in AI Elements?
Get up-to-date information about design tokens and styling conventions.
Troubleshooting
What to do if you run into issues with AI Elements.
Chatbot
An example of how to use the AI Elements to build a chatbot.
On this page
Installation Guide Step 1: Choose Your AI Tool Step 2: Locate Your Configuration File Step 3: Add AI Elements Configuration Step 4: Restart Your AI Tool Step 5: Verify the Connection Multiple MCP Servers Usage Examples Getting Component Information Building Layouts Styling Guidance Security and Privacy Data Handling Authentication
GitHubEdit this page on GitHub Scroll to topCopy pageOpen in chat