npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

trae-airtable-mcp-secure

v1.1.0

Published

Custom Airtable MCP Server optimized for Trae.AI with 33 advanced functions

Readme

Trae Airtable MCP Server

Server MCP personalizzato per Airtable ottimizzato specificamente per Trae.AI con funzioni reali basate sugli scope API disponibili.

🚀 Installazione e Pubblicazione

1. Preparazione del Progetto

cd /Users/niksmic/Desktop/PBNManaverv1/custom-airtable-mcp
npm install
npm run build

2. Pubblicazione su NPM

# Login su NPM (se non già fatto)
npm login

# Pubblicazione del pacchetto
npm publish

3. Configurazione in Trae.AI

Dopo la pubblicazione, configura il MCP in Trae.AI:

{
  "mcpServers": {
    "trae-airtable": {
      "command": "npx",
      "args": ["trae-airtable-mcp-secure"],
      "env": {
        "AIRTABLE_TOKEN": "YOUR_AIRTABLE_TOKEN_HERE",
        "AIRTABLE_BASE_ID": "YOUR_AIRTABLE_BASE_ID_HERE",
        "NODE_ENV": "production",
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

🔑 Scope API Airtable Supportati

Questo MCP utilizza i seguenti scope Airtable:

  • data.records:read - Lettura record
  • data.records:write - Scrittura record
  • data.recordComments:read - Lettura commenti
  • data.recordComments:write - Scrittura commenti
  • schema.bases:read - Lettura schema base
  • webhook:manage - Gestione webhook
  • user.email:read - Lettura email utente

📋 Funzioni Realmente Implementate

✅ Core Operations (Funzionanti)

  1. list_tables - Lista tutte le tabelle
  2. get_table_schema - Schema completo di una tabella
  3. list_records - Lista record con filtri avanzati
  4. get_record - Ottieni record specifico
  5. create_record - Crea nuovo record
  6. update_record - Aggiorna record esistente
  7. delete_record - Elimina record

✅ Bulk Operations (Funzionanti)

  1. bulk_create_records - Crea fino a 10 record per volta
  2. bulk_update_records - Aggiorna fino a 10 record per volta
  3. bulk_delete_records - Elimina fino a 10 record per volta
  4. batch_operations - Operazioni miste (create/update/delete)

✅ Search & Analysis (Funzionanti)

  1. search_records - Ricerca testuale avanzata
  2. count_records - Conta record con filtri
  3. find_duplicates - Trova duplicati basati su campi specifici
  4. generate_report - Report statistici sui dati

✅ Views Management (Parzialmente Funzionanti)

  1. get_views - Lista viste disponibili
  2. get_view_records - Record da vista specifica
  3. create_view - Crea nuova vista (limitato)

✅ Data Import/Export (Funzionanti)

  1. export_table_csv - Esporta dati in formato CSV
  2. import_csv_data - Importa dati da CSV
  3. duplicate_record - Duplica record esistente

✅ Advanced Features (Funzionanti)

  1. get_field_options - Analizza opzioni campo
  2. validate_formula - Valida sintassi formula Airtable
  3. get_record_history - Info record corrente (limitato)

✅ Base Management (Funzionanti)

  1. get_base_info - Informazioni base completa
  2. get_collaborators - Info collaboratori (limitato)

✅ Webhooks (Funzionanti)

  1. get_webhooks - Lista webhook attivi
  2. create_webhook - Crea nuovo webhook
  3. update_webhook - Aggiorna webhook esistente
  4. delete_webhook - Elimina webhook

❌ Funzioni Non Supportate

  • update_view - Richiede scope schema.bases:write
  • delete_view - Richiede scope schema.bases:write
  • sync_external_data - Richiede funzionalità enterprise
  • ai_analyze_data - Richiede Airtable AI (enterprise)

🔧 Configurazione Ambiente

Crea file .env:

AIRTABLE_TOKEN=YOUR_AIRTABLE_TOKEN_HERE
AIRTABLE_BASE_ID=YOUR_AIRTABLE_BASE_ID_HERE
NODE_ENV=production
LOG_LEVEL=INFO

🧪 Test del MCP

# Test locale
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | node dist/index.js

# Test con Trae.AI
# Usa le funzioni direttamente nell'interfaccia Trae.AI

⚠️ Limitazioni API Airtable

Scope Limitati

  • schema.bases:write non disponibile - impedisce modifica/eliminazione viste
  • Airtable AI richiede piano Enterprise
  • Sync esterni limitato a integrazioni native

Rate Limits

  • 5 richieste/secondo per operazioni standard
  • Batch operations fino a 10 record per volta
  • Webhook limitati dal piano Airtable

📊 Caratteristiche Implementate

  • Gestione Errori Robusta: Retry automatico e logging dettagliato
  • Validazione Schema: Controllo automatico dei tipi di dato
  • Operazioni Batch: Ottimizzazione per grandi volumi di dati
  • Sicurezza: Validazione input e sanitizzazione dati
  • Webhook Management: Gestione completa webhook
  • CSV Import/Export: Supporto completo per trasferimento dati

🚀 Performance Reali

  • Throughput: Fino a 300 operazioni/minuto (limite API Airtable)
  • Latenza: < 500ms per operazioni singole
  • Affidabilità: Dipende da Airtable API status
  • Scalabilità: Limitata dal piano Airtable utilizzato

🔄 Funzioni Testate e Verificate

Core Operations: Tutte funzionanti
Bulk Operations: Testate con successo
Search & Analysis: Implementazione completa
Data Import/Export: CSV testato su 12,796 record
Webhooks: Gestione completa testata
⚠️ Views Management: Limitato a lettura e creazione base
AI Features: Non disponibili senza piano Enterprise

📦 Struttura Progetto

custom-airtable-mcp/
├── src/
│   └── index.ts          # Server MCP principale
├── dist/                 # File compilati
├── package.json          # Configurazione NPM
├── tsconfig.json         # Configurazione TypeScript
└── README.md            # Documentazione

🔄 Aggiornamenti

Per aggiornare il MCP:

  1. Modifica il codice
  2. Incrementa versione in package.json
  3. Ricompila: npm run build
  4. Ripubblica: npm publish
  5. Aggiorna in Trae.AI se necessario

🐛 Troubleshooting

Errore di Connessione

  • Verifica token Airtable
  • Controlla Base ID
  • Assicurati che Node.js >= 18

MCP Non Riconosciuto

  • Verifica pubblicazione NPM
  • Controlla configurazione Trae.AI
  • Riavvia Trae.AI

Errori di Permessi

  • Verifica permessi Airtable
  • Controlla scope del token

📝 Licenza

MIT License - vedi file LICENSE per dettagli.

🤝 Supporto

Per supporto tecnico o domande:

🎯 Prossimi Passi

  1. Pubblica il MCP: npm publish
  2. Configura in Trae.AI: Usa la configurazione JSON sopra
  3. Testa le funzioni: Inizia con list_tables
  4. Crea viste CRM: Usa create_view per viste ottimizzate
  5. Implementa automazioni: Configura webhook per aggiornamenti real-time

Versione: 1.0.2
Ultimo Aggiornamento: Gennaio 2025
Compatibilità: Trae.AI v2.0+ | Airtable API v0.3.0
Scope Supportati: data.records, schema.bases:read, webhook:manage

Nota: Questo MCP è ottimizzato specificamente per Trae.AI e include tutte le funzionalità realmente disponibili tramite gli scope API Airtable supportati.