MCP App

v1.0.0Cloud Servicesstable

This text introduces the Model Context Protocol (MCP) for AI interaction, exploring Google Apps Script (GAS) as a server option. It shows feasibility with a sample but notes the lack of a GAS SDK, aiming to encourage understanding and development.

gas-librarygoogle-apps-scriptgoogle-apps-script-librarymcpmcp-server
Share:
47
Stars
0
Downloads
0
Weekly
0/5

What is MCP App?

MCP App is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this text introduces the model context protocol (mcp) for ai interaction, exploring google apps script (gas) as a server option. it shows feasibility with a sample but notes the lack of a gas sdk, aim...

This text introduces the Model Context Protocol (MCP) for AI interaction, exploring Google Apps Script (GAS) as a server option. It shows feasibility with a sample but notes the lack of a GAS SDK, aiming to encourage understanding and development.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • This text introduces the Model Context Protocol (MCP) for AI

Use Cases

Run MCP servers using Google Apps Script
Enable serverless MCP deployment without server infrastructure
tanaikech

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcpapp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MCP App

MCPApp is a Google Apps Script library that lets developers build and deploy MCP (Model Context Protocol) servers entirely within Google's serverless infrastructure — no separate host or container required. It implements the MCP protocol specification so that a Google Apps Script web app can respond to MCP clients (like Gemini CLI or Claude Desktop) using simple HTTP endpoints. Developers use it to expose Google Workspace data — Sheets, Docs, Calendar, Gmail — as MCP tools that AI assistants can query and manipulate directly.

Prerequisites

  • A Google account with access to Google Apps Script (script.google.com)
  • Basic familiarity with Google Apps Script (JavaScript-based)
  • An MCP-compatible client such as Gemini CLI, Claude Desktop, or any client supporting HTTP/SSE transport
  • The MCPApp library script ID to add as a GAS library dependency
1

Open Google Apps Script

Go to script.google.com and create a new standalone script project, or open an existing Google Workspace project (linked to a Sheet, Doc, etc.) where you want to add MCP capabilities.

2

Add MCPApp as a library

In your Apps Script project, click Libraries (+), search for the MCPApp library by its script ID, select the latest version, and add it to your project.

3

Implement your MCP server entry point

Create a doPost function that initializes MCPApp with an access key and registers your tools. MCPApp handles all protocol-level routing (initialize, tools/list, tools/call, prompts/list) automatically.

function doPost(e) {
  const mcp = new MCPApp.mcpApp({ accessKey: "your-secret-key" });
  mcp.addTool({
    name: "get_spreadsheet_data",
    description: "Returns data from a Google Sheet",
    inputSchema: { type: "object", properties: { range: { type: "string" } } },
    handler: (args) => SpreadsheetApp.getActiveSheet().getRange(args.range).getValues()
  });
  return mcp.handle(e);
}
4

Deploy as a Web App

Click Deploy → New deployment → Web App. Set 'Execute as' to yourself and 'Who has access' to Anyone (or your organization). Copy the deployment URL.

5

Configure your MCP client

Add the deployed web app URL to your MCP client configuration. For clients that support HTTP/SSE MCP servers, point them directly at the deployment URL.

{
  "mcpServers": {
    "mcpapp": {
      "url": "https://script.google.com/macros/s/YOUR_DEPLOYMENT_ID/exec"
    }
  }
}
6

Test with curl

Verify your MCP server responds correctly by sending a tools/list request via curl before connecting a full client.

curl -L "https://script.google.com/macros/s/YOUR_DEPLOYMENT_ID/exec" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

MCP App Examples

Client configuration

MCP client configuration pointing to a Google Apps Script web app deployment that hosts an MCPApp server.

{
  "mcpServers": {
    "mcpapp-gas": {
      "url": "https://script.google.com/macros/s/AKfycbxXXXXXXXXXXXXXXXXXXXXX/exec"
    }
  }
}

Prompts to try

Example prompts for interacting with Google Workspace data through an MCPApp-powered server.

- "Read the data from cells A1:C10 in my active spreadsheet."
- "List all the tools available on this MCP server."
- "Summarize the contents of the Google Doc linked to this project."
- "What calendar events do I have tomorrow according to the MCP server?"
- "Call the get_spreadsheet_data tool with range B2:D5."

Troubleshooting MCP App

Apps Script web app returns a 401 or permission error

In the deployment settings, ensure 'Who has access' is set to 'Anyone' (for public access) or 'Anyone within [organization]'. If you're using an access key, verify it matches what you passed to MCPApp.

MCP client receives an empty tools list

Check that your doPost function is correctly calling mcp.addTool() before mcp.handle(e). Also confirm the deployment is up to date — each code change requires a new deployment version in Apps Script.

Concurrent request errors or LockService failures

MCPApp uses Google's LockService by default to serialize concurrent requests. If you need higher throughput (under 30 concurrent requests), disable it by passing lock: false to the constructor: new MCPApp.mcpApp({ accessKey: 'key', lock: false }).

Frequently Asked Questions about MCP App

What is MCP App?

MCP App is a Model Context Protocol (MCP) server that this text introduces the model context protocol (mcp) for ai interaction, exploring google apps script (gas) as a server option. it shows feasibility with a sample but notes the lack of a gas sdk, aiming to encourage understanding and development. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCP App?

Follow the installation instructions on the MCP App GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MCP App?

MCP App works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCP App free to use?

Yes, MCP App is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcpapp": { "command": "npx", "args": ["-y", "mcpapp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MCP App?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides