The MCP Server for Google Forms enables you to create and manage Google Forms through natural language requests. It implements the Model Context Protocol to connect CamelAIOrg Agents with the Google Forms API, allowing you to create forms, add questions, and retrieve responses using conversational commands.
git clone https://github.com/yourusername/google-form-mcp-server.git
cd google-form-mcp-server
http://localhost:5000/oauth2callback
Create a .env
file in the root directory with the following content:
# Google API Credentials
GOOGLE_CLIENT_ID=your_client_id_here
GOOGLE_CLIENT_SECRET=your_client_secret_here
GOOGLE_REFRESH_TOKEN=your_refresh_token_here
# Server Configuration
FLASK_ENV=development
PORT=5000
DEBUG=True
# CamelAIOrg Agents Configuration
AGENT_ENDPOINT=http://agents:5001/process
AGENT_API_KEY=your_agent_api_key_here
.env
fileBuild and start the containers:
docker-compose up --build
This starts both the MCP Server (port 5000) and the CamelAIOrg Agents service (port 5001).
Access the web interface at http://localhost:5000
The user interface allows you to:
GET /api/health
- Check server statusGET /api/schema
- Retrieve MCP tools schemaPOST /api/process
- Send MCP requestsGET /health
- Check agent statusGET /schema
- Get agent capabilitiesPOST /process
- Process natural language requestsTry these natural language commands:
The MCP Server uses this request format:
{
"transaction_id": "unique_transaction_id",
"tool_name": "create_form",
"parameters": {
"title": "Form Title",
"description": "Form Description"
}
}
And responds with:
{
"transaction_id": "unique_transaction_id",
"status": "success",
"result": {
"form_id": "form_id",
"response_url": "https://docs.google.com/forms/d/form_id/viewform",
"edit_url": "https://docs.google.com/forms/d/form_id/edit",
"title": "Form Title"
}
}
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.