Skip to main content
Glama
UcemaRepo

LeadFunnel MCP

by UcemaRepo

LeadFunnel MCP — Render

MCP服务器,会话保存在进程的RAM中。无数据库,无磁盘,无缓存。

POST /cargar   →  Salesforce → depura → scorea → RAM
POST /mcp      →  Claude consulta (lee de RAM)
POST /purgar   →  RAM = null
GET  /health   →  ¿está vivo? ¿hay sesión?

当Render因不活动而关闭服务时,进程终止,数据也随之消失。这就是临时性的保证——不依赖TTL。


部署

  1. 我把这个仓库推到了GitHub(私有)。

  2. Render → New → Web Service → 连接仓库。

  3. 配置:

    • Runtime: Node

    • Build command: npm install

    • Start command: npm start

    • Health check path: /health

环境变量

变量

SF_DOMAIN

ucema2.my.salesforce.com

SF_CLIENT_ID

Connected App的consumer key

SF_CLIENT_SECRET

consumer secret

MCP_TOKEN

openssl rand -hex 32

ENMASCARAR_PII

true(只有在你需要完整数据时才设为false


Related MCP server: Salesforce MCP Server

测试

# Salud
curl https://TU-APP.onrender.com/health

# Cargar (tarda: hace todo el pull de Salesforce)
curl -X POST https://TU-APP.onrender.com/cargar \
  -H "Authorization: Bearer $MCP_TOKEN"

# Handshake MCP
curl -X POST "https://TU-APP.onrender.com/mcp?k=$MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'

# Purgar
curl -X POST https://TU-APP.onrender.com/purgar \
  -H "Authorization: Bearer $MCP_TOKEN"

在Streamable HTTP中,Accept头设置为text/event-stream必须的。 没有它,SDK会拒绝请求。

在连接Claude之前,先使用官方Inspector:

npx @modelcontextprotocol/inspector

连接Claude

claude.ai → Customize → Connectors → + → Add custom connector

URL: https://TU-APP.onrender.com/mcp?k=TU_TOKEN


日常工作流程

  1. 启动时执行POST /cargar

  2. 在Claude中随意查询任何内容

  3. 如果你离开较长时间,Render已关闭服务:重新执行/cargar


已知限制

冷启动。 在免费套餐中,约15分钟无流量后Render会关闭服务。下一次请求会将其唤醒(约50秒)但会话已经丢失。如果这造成困扰:使用付费套餐,或者用一个cron每10分钟访问一次/health(但这会让数据无限期地保存在RAM中,而这恰恰是你不想的)。

URL中的Token。 Claude的连接器UI不允许自定义headers。查询参数中的token比header更弱:它会留在连接器配置中,并可能出现在日志里。下一步是真正的OAuth 2.0,用SDK可以实现,但那是另一个项目。

RAM。 12k个线索 ≈ JS对象中约25 MB。Render免费套餐提供512 MB。绰绰有余,但如果数据集增长很大,就需要分页了。


保存的内容

字段

是否保存

姓名

sfId

是(用于跳转到记录)

DNI

从不

电话

已脱敏(***4821

邮箱

已脱敏(ni***@gmail.com

动机

仅长度,不保存文本

ENMASCARAR_PII=false时,会保存完整的电话和邮箱。这是一个有意识的风险决策:当该变量设为false时,真实候选人的联系数据会在每次查询中进入模型上下文。

F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    A
    maintenance
    An MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.
    6
    15
    3,172
    166
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    A read-only MCP server that exposes Telegram lead conversations to Claude for sales analysis, enabling lead summary, intent, stage, and follow-up insights.

View all related MCP servers

Related MCP Connectors

  • Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.

  • Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.

  • Cloud-hosted MCP server for durable AI memory

View all MCP Connectors

Latest Blog Posts

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/UcemaRepo/mcpfunnel'

If you have feedback or need assistance with the MCP directory API, please join our Discord server