MCP-Excel — Google Sheets CRM MCP Server

MCP-Excel — Google Sheets CRM MCP Server

mcp-excel-nifetency•bynifetency

A stateless MCP server that turns any Google Sheet into a four-entity CRM with Lead, Organization, Contact and Activity tabs.

License: MIT•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Creates and manages four CRM tabs in a Google Sheet, appending missing columns without disturbing existing data and auto-incrementing IDs.
  • •Exposes stateless tools for adding, listing, searching, updating, soft-deleting and relating CRM records, all requiring an explicit sheet_id.
  • •Provides lead pipeline analytics with total, status and segment breakdowns.
  • •Optionally extracts contact fields from a business-card image using Claude Vision.

BEST FOR

  • •Teams wanting to manage lightweight CRM records using an existing Google Sheet as the datastore.
  • •Sharing one running instance across multiple teams without shared session state.
  • •Connecting Claude Desktop or other local MCP hosts to a CRM over stdio.

ABOUT MCP-EXCEL-NIFETENCY

MCP-Excel — Google Sheets CRM MCP Server is cataloged as an MCP server attributed to nifetency. A stateless MCP server that turns any Google Sheet into a four-entity CRM with Lead, Organization, Contact and Activity tabs. It is categorized under databases storage. 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: MIT. 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 MCP-Excel — Google Sheets CRM 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 the server keep an active sheet between calls?

No; there is no session state or active-sheet variable, so each call must include a sheet_id.

What does the server do with an existing sheet that has different column names?

It matches headers fuzzily, resolving synonyms and near-duplicates, and a dedupe tool can merge genuine duplicate columns.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 9e599f109762 · 采集于 2026-11-13 14:20:36 UTC

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

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

MCP-Excel — Google Sheets CRM MCP Server

A stateless MCP server that turns any Google Sheet into a 4-entity CRM (Lead, Organization, Contact, Activity). Runs as a standalone HTTP service (FastMCP streamable-HTTP, default port 5002) or over stdio for Claude Desktop and other local MCP hosts — no gateway, no ngrok, no subprocess spawning required.


Architecture

Any MCP host (Claude Desktop, your backend, an agent framework)
  │  HTTP POST /mcp  (JSON-RPC) — or stdio
  ▼
MCP-Excel :5002  (FastMCP streamable-HTTP)
  │  gspread
  ▼
Google Sheets API

Every tool call includes an explicit sheet_id — there is no session state, no "active sheet" variable. Multiple teams can use the same running instance safely because nothing is shared between requests.


Sheet schema (auto-managed)

Four tabs, created on first connection if they don't exist. Existing tabs are used as-is; missing columns are appended without disturbing existing data.

TabPrimary KeyKey columns
LeadLead IDOrganization ID, Status, Segment, Opportunity Details, Last Contact Date
OrganizationOrganization IDOrganization Name, Industry Domain, Sub Domain, Company Type, Website
ContactContact IDFirst Name, Last Name, Organization ID, Designation, Mobile, Email, LinkedIn Profile
ActivityActivity IDLead ID, Organization ID, Contact ID, Activity Type, Activity Sub-Type, Subject, Discussion Summary, Outcome

IDs auto-increment continuing the existing pattern (LD001 → LD002, ACT010 → ACT011). Falls back to UUID if no consistent pattern is found.

Each tab also gets Created At, Updated At, Deleted audit columns appended if they aren't already present.

Headers are matched fuzzily (synonyms and near-duplicates are resolved), so an existing sheet with slightly different column names still works. Run tool_dedupe_headers (dry-run first) to merge genuine duplicate columns.


Setup

1. Google service account

You need a creds.json service account key with Google Sheets API and Google Drive API enabled.

Place it in this directory (the default path) or set GOOGLE_APPLICATION_CREDENTIALS to its full path.

Never commit creds.json to git. It is excluded in .gitignore; keep it local or mount it as a secret.

2. Share the sheet

For each Google Sheet you want to connect: open the sheet → Share → add the service account email as Editor → Done.

The service account email is printed at startup and returned by get_sheet_info on permission errors. It is also readable from creds.json:

python3 -c "import json; print(json.load(open('creds.json'))['client_email'])"

3. Install dependencies

pip install -r requirements.txt

Optional — business-card OCR (Claude Vision) support:

pip install anthropic
export ANTHROPIC_API_KEY=...

Running

Local dev (HTTP on :5002)

GOOGLE_APPLICATION_CREDENTIALS=creds.json python mcp_excel_server.py

Verify it's healthy:

curl -s -X POST http://localhost:5002/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' \
  | python3 -m json.tool

Docker (staging / production)

docker build -t mcp-excel .
docker run -p 5002:5002 \
  -v /path/to/creds.json:/secrets/creds.json \
  -e GOOGLE_APPLICATION_CREDENTIALS=/secrets/creds.json \
  mcp-excel

Claude Desktop (stdio transport)

Set MCP_TRANSPORT=stdio to use stdio instead of HTTP:

{
  "mcpServers": {
    "crm": {
      "command": "python",
      "args": ["/path/to/mcp-excel/mcp_excel_server.py"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/mcp-excel/creds.json",
        "MCP_TRANSPORT": "stdio"
      }
    }
  }
}

Environment variables

VariableDefaultNotes
GOOGLE_APPLICATION_CREDENTIALScreds.jsonPath to service account JSON
MCP_TRANSPORThttphttp for server mode, stdio for Claude Desktop
MCP_PORT5002HTTP listen port
ANTHROPIC_API_KEY—Only for tool_extract_business_card

Tools

All tools are stateless — every call requires sheet_id (full Google Sheets URL or bare spreadsheet ID).

ToolDescription
tool_get_sheet_infoValidate access, ensure all 4 tabs exist, confirm write access
tool_add_recordAdd a record to Lead / Organization / Contact / Activity
tool_list_recordsList records with optional column-based filters (paged)
tool_search_recordsKeyword search across all columns
tool_update_recordUpdate fields on an existing record by primary-key ID
tool_delete_recordSoft-delete a record (sets Deleted to true)
tool_get_related_recordsLook up records via foreign key (e.g. all Activities for a Lead)
tool_get_pipeline_analyticsLead pipeline analytics: total, status breakdown, segment breakdown
tool_dedupe_headersFind and merge duplicate columns (dry-run report first)
tool_extract_business_cardExtract contact fields from a business-card image via Claude Vision (needs ANTHROPIC_API_KEY)

Development

pip install pytest
pytest test_mcp_excel.py test_crm_local.py -v

Tests run fully offline (Google calls are mocked); no credentials needed.


Troubleshooting

ProblemFix
status: failure, message: ""Sheet not found — share it with the service account as Editor
Permission denied on sheetRe-share with the service account as Editor (not Viewer)
Cannot connect to MCP-Excel serviceMCP-Excel not running — start it on :5002
sheet_id is required and was emptyAlways pass sheet_id — there is no implicit active sheet
Tab not found / wrong columnsget_sheet_info auto-creates missing tabs and appends missing columns

License

MIT — see LICENSE. Built by Nife.

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 MCP-Excel — Google Sheets CRM 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/mcp-excel-nifetency)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

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

下载与拉取统计

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

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

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage