Connect your AI agents to SmartForm using our Model Context Protocol (MCP) server. Download and run locally with your API key.
Download the SmartForm MCP server to your local machine using one of these commands:
Download using curl
curl -o smartform-mcp.js https://www.smartform.dev/mcp-server/index.jsDownload using wget
wget -O smartform-mcp.js https://www.smartform.dev/mcp-server/index.jsAlternative: Direct Download
You can also download directly: smartform-mcp.js
Generate an API key from your SmartForm settings page:
sf_)Add SmartForm to your AI agent's MCP configuration:
{
"mcpServers": {
"smartform": {
"command": "node",
"args": ["/path/to/smartform-mcp.js"],
"env": {
"SMARTFORM_API_KEY": "your_api_key_here"
}
}
}
}{
"mcpServers": {
"smartform": {
"command": "node",
"args": ["/path/to/smartform-mcp.js"],
"env": {
"SMARTFORM_API_KEY": "your_api_key_here"
}
}
}
}{
"mcpServers": [
{
"name": "smartform",
"command": "node",
"args": ["/path/to/smartform-mcp.js"],
"env": {
"SMARTFORM_API_KEY": "your_api_key_here"
}
}
]
}Important Notes:
/path/to/smartform-mcp.js with the actual pathyour_api_key_here with your actual API keyTest that your MCP server is working correctly:
AI agent connects without errors
Check your agent logs for successful MCP connection
Tools are available in your agent
Look for SmartForm tools: create_form, get_form, get_submissions
Test form creation works
Ask your agent to create a test form with A2UI JSON
Once connected, your AI agent will have access to these tools:
Create forms from A2UI JSON definitions
Retrieve form details and submission count
List form submissions with pagination
Deactivate or expire forms
We're working on publishing the SmartForm MCP server to npm for easier installation. Soon you'll be able to use npx @smartform/mcp for automatic setup.
Need help? Check our detailed MCP documentation or contact support