AutoPeças MCP Server
Facilitates the use of Google spreadsheets as a data source for automotive inventory management, exposing part details through the Model Context Protocol.
Utilizes Google Cloud Service Accounts and the Google Sheets API to securely retrieve and manage spreadsheet-based inventory data.
Provides tools for accessing automotive parts data stored in Google Sheets, including functionality for searching by code, listing categories, and verifying stock status.
Enables n8n AI agents and workflows to interact with automotive parts databases via the mcpClientTool node, allowing for automated stock checks and inventory searches.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AutoPeças MCP ServerCheck the stock and price for Bosch oil filters"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP with N8N
mcp-autopeças with n8n
MCP Server in Python that reads and writes to Google Sheets tabs via the MCP protocol — compatible with Claude Desktop, Claude Code, and any MCP Client (including the mcpClientTool node in N8N).
The server covers two domains in a single process, each mapped to a tab in the same spreadsheet:
Domain | Tab | Tools |
AutoParts (AutoMax) |
| 6 tools — read-only |
Hospital Beds |
| 9 tools — read, write, email, and SMS |
Prerequisites
Python 3.12+
uv(recommended) orpipGoogle Service Account with Editor permission on the spreadsheet (required for
leitos_atualizar_status_limpeza)
Installation
cd mcp-alura
uv sync # ou: pip install -e .Configuration
1. Google Credentials (Service Account)
In the Google Cloud Console:
Create a project → APIs & Services → Enable Google Sheets API
Create a Service Account → generate and download the JSON key
Share the spreadsheet with the service account email with Editor permission
2. Environment Variables
cp .env.example .envEdit the .env file with at least:
SPREADSHEET_ID=1zt4h2v3ldK3zELNNmvyn02elEB9dHdfXD5q85ZYh2k0
AUTOPECAS_SHEET_NAME=AutoPeças
LEITOS_SHEET_NAME=Leitos
GOOGLE_CREDENTIALS_PATH=/caminho/para/service_account.json
# Para leitos_enviar_notificacao (e-mail):
GMAIL_USER=setor@hospital.com.br
GMAIL_APP_PASSWORD=xxxx_xxxx_xxxx_xxxx
# Para leitos_enviar_sms:
TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_AUTH_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_FROM_NUMBER=+18647139932The
SPREADSHEET_IDis in the URL:docs.google.com/spreadsheets/d/**{ID}**/edit
Expected Spreadsheet Structure
AutoPeças Tab:
Code | Name | Category | Brand | Price | Stock | Supplier | Description | Location |
F-1023 | Oil Filter | Engine | Bosch | 35.90 | 48 | AutoDist | ... | Shelf A3 |
Leitos Tab — columns confirmed by the N8N node schema:
Bed_ID | Room | Room_Type | Occupancy_Status | Cleaning_Status | Patient | Last_Cleaning |
A-101 | Room 10 | Ward | Occupied | Completed | John Doe | 2025-03-28 |
UTI-05 | North ICU | ICU | Available | Pending | — | 2025-03-27 |
Column names can be adjusted in the
.envfile usingCOL_*andLEITOS_COL_*.
AutoParts Tools
Tool | What it does |
| Search by name, code, or description |
| List the catalog with pagination and filters |
| Full details of a part by code |
| Categories with part counts |
| Stock by code or summary by category |
| Manufacturers with part counts |
Hospital Beds Tools
Mapping of N8N agents (mcp-all-nodes.json) to Python tools:
N8N Agent | Filter | Equivalent Tools |
Management Agent | Full access |
|
Ward Agent |
|
|
ICU Agent |
|
|
All agents | — |
|
N8N Write Node |
|
|
Tool | Read/Write | What it does |
| Read | Lists all beds; filterable by |
| Read | Fixed filter |
| Read | Fixed filter |
| Read | Beds with |
| Read | Full data of a bed by |
| Read | Dashboard: occupancy and cleaning grouped by |
| Write | Updates |
| External | Sends email via Gmail SMTP |
| External | Sends SMS via Twilio REST API |
Occupancy_Status: Available 🟢 · Occupied 🔴 · Reserved 🔵
Cleaning_Status: Completed ✅ · Pending ⚠️ · In Progress 🔄
Room types: Ward · ICU · Apartment · Semi-Intensive
Configuring email sending
The leitos_enviar_notificacao tool uses Gmail SMTP with an App Password:
Enable two-step verification on your Google account
Create a password for "Email" and paste it into
GMAIL_APP_PASSWORDin the.envfile
Configuring SMS sending
The leitos_enviar_sms tool uses the Twilio REST API:
Create an account at twilio.com
Get your
Account SIDandAuth Tokenfrom the dashboardRegister or purchase a sender number and configure
TWILIO_FROM_NUMBER
Usage in Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"hospital-mcp": {
"command": "uv",
"args": ["run", "--project", "/caminho/para/mcp-alura", "python", "server.py"],
"env": {
"SPREADSHEET_ID": "1zt4h2v3ldK3zELNNmvyn02elEB9dHdfXD5q85ZYh2k0",
"AUTOPECAS_SHEET_NAME": "AutoPeças",
"LEITOS_SHEET_NAME": "Leitos",
"GOOGLE_CREDENTIALS_PATH": "/caminho/para/service_account.json",
"GMAIL_USER": "setor@hospital.com.br",
"GMAIL_APP_PASSWORD": "xxxx_xxxx_xxxx_xxxx",
"TWILIO_ACCOUNT_SID": "ACxxxxxxxx",
"TWILIO_AUTH_TOKEN": "xxxxxxxx",
"TWILIO_FROM_NUMBER": "+18647139932"
}
}
}
}Usage in Claude Code
claude mcp add hospital-mcp -- uv run --project /caminho/para/mcp-alura python server.pyUsage in N8N (MCP Client)
Configure the MCP Client Tool node pointing to the server endpoint.
The three N8N agents can share the same Python MCP server,
each using the tools appropriate for their role via include: selected.
Local testing
uv run python server.pyTo inspect the 15 tools with the MCP Inspector:
npx @modelcontextprotocol/inspector uv run python server.pyMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that integrates with Google Drive and Google Sheets, enabling users to create, read, update, and manage spreadsheets through natural language commands.980MIT
- FlicenseBqualityDmaintenanceProvides a Model Context Protocol (MCP) server that enables LLMs to directly access and interact with Google Spreadsheet data.21
- AlicenseBqualityDmaintenanceAn MCP server for automating Google Workspace applications including Sheets, Apps Script, Drive, Docs, and Gmail. It enables users to manipulate spreadsheets, edit scripts, manage files, and send emails directly from conversational AI interfaces.31MIT
- AlicenseAqualityFmaintenanceA Python-based MCP server that acts as a bridge between MCP-compatible clients and the Google Sheets API, enabling AI-driven automation and data manipulation workflows.40MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Google search results via SERP API
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/joao-parana/mcp-alura'
If you have feedback or need assistance with the MCP directory API, please join our Discord server