tif-score-mcp
Provides workflow error diagnosis: given an n8n workflow's JSON and an error message, it returns a root cause and a proposed minimal fix, generating corrected workflow JSON.
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., "@tif-score-mcpscore this call transcript and tell me if the lead is worth following up"
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.
TIF Score MCP
An MCP (Model Context Protocol) server that exposes three tools to any MCP-compatible client (Claude Desktop, Claude Code, or anything else that speaks MCP):
score_conversation— analyzes a call transcript and returns structured business intelligence.get_lead_score— scores a transcript 0-100 and classifies it hot / warm / cold.diagnose_workflow_error— given an n8n workflow's JSON and an error message, returns a root cause and a proposed minimal fix.
This is a port, not a rewrite: the scoring prompt and weighting logic are adapted from a real, working conversation-analysis and lead-scoring pipeline (company and product names generalized for this public repo), and the workflow-diagnosis tool is a scoped-down port of a larger workflow self-healing system's diagnostic reasoning. See docs/BTS.md for a plain-language writeup of the whole process, from planning through finished server.
Demo
Real MCP server, real Claude API calls, real output — no mocked data. Generated by running demo/run-demo.mjs (npm run demo):

Related MCP server: n8n-mcp
Tools
score_conversation
Input:
{
"transcript": "Agent: Thanks for calling...\nCaller: Hi, I need to book...",
"call_duration": 184,
"raw_outcome": "completed",
"source_system": "Retell"
}Output:
{
"intent": "booking",
"sentiment": "positive",
"urgency": "high",
"objections": ["price"],
"outcome": "booked",
"topics": ["appointment booking", "pricing question"],
"missed_opportunity": false,
"follow_up_needed": false,
"revenue_signal": "high",
"churn_risk": false,
"ai_summary": "The caller wanted a same-day appointment and asked about price before booking. They booked a 4pm slot despite the price being a bit higher than expected."
}get_lead_score
Same input shape as score_conversation, plus an optional repeat_caller boolean (see Known limitation below).
Output:
{
"score": 75,
"tier": "hot",
"signals_used": ["high urgency (+25)", "booking intent (+20)", "booked outcome (+20)", "positive sentiment (+10)"]
}Scoring weights:
Signal | Points |
High urgency | +25 |
Booking intent | +20 |
Booked outcome | +20 |
Repeat caller | +15 |
Asked about pricing | +10 |
Positive sentiment | +10 |
Negative or frustrated sentiment | -15 |
Dropped call | -10 |
Low-intent inquiry | -10 |
Score is clamped to 0-100. Bands: 70-100 hot, 40-69 warm, 0-39 cold.
diagnose_workflow_error
Input:
{
"workflowJson": { "name": "...", "nodes": [...], "connections": {...} },
"errorMessage": "Cannot read properties of undefined (reading 'toUpperCase')"
}Output:
{
"rootCause": "The Code node assumes $json.body.customer always exists, but the webhook can receive a payload without a customer object.",
"fixSummary": "Add optional chaining so the node doesn't throw when customer is missing.",
"fixable": true,
"fixedWorkflow": { "...": "complete corrected workflow JSON" },
"confidence": "medium",
"notes": "Verify the caller of this node can tolerate a null email before deploying."
}Scope note: this tool is a deliberately scoped-down port of a larger, stateful self-healing system. The original dispatches a separate evaluator sub-agent so the fix-generator never grades its own work, retries once on a rejected fix, fetches and writes back to a live n8n instance, and persists memory between runs. None of that fits inside one stateless MCP tool call, so only the diagnostic reasoning was ported: classify the error, propose the smallest possible fix, and admit honestly when a workflow edit can't fix it (expired credentials, rate limits, upstream outages, etc). Treat fixedWorkflow as a starting point for human or separate review, not something to auto-deploy.
Known limitation: repeat_caller
The "repeat caller" signal (+15 points) can't be derived from a transcript's text alone — it requires knowing call history, which this stateless tool doesn't have access to. If you already know this from your own CRM or call log, pass repeat_caller: true explicitly; otherwise it defaults to false and that signal is simply not counted.
Setup
npm install
cp .env.example .env
# edit .env and set ANTHROPIC_API_KEYRegistering with an MCP client
Add this to your .mcp.json (or the equivalent config for your client), using an absolute path since .mcp.json doesn't reliably resolve relative paths across clients:
{
"mcpServers": {
"tif-score-mcp": {
"command": "node",
"args": ["/absolute/path/to/tif-score-mcp/src/index.js"],
"env": {
"ANTHROPIC_API_KEY": "your-key-here"
}
}
}
}Restart your MCP client afterward so it picks up the new server.
Testing
npm run test:unit # pure scoring-math tests, no network, no API key needed
npm run test:client # spawns the real server, calls all three tools over real stdio JSON-RPC — needs ANTHROPIC_API_KEY, makes real (billed) API callsYou can also poke all three tools interactively without writing any code:
npx @modelcontextprotocol/inspector node src/index.jsA model compatibility note
This server defaults to claude-sonnet-4-6 with temperature: 0 for deterministic output. That's a deliberate choice: claude-sonnet-4-6 is the newest model that still accepts the temperature parameter — newer models (Opus 4.7+, Fable 5) reject it outright. If you change TIF_MODEL to a newer model, remove temperature from the calls in src/lib/anthropic.js first, or every tool call will fail.
Security
Never commit real API keys. .env is gitignored from the first commit, and .mcp.json in this repo only ever contains a placeholder — fill in your real key locally, not in version control.
Project layout
See CLAUDE.md for a fuller orientation, LEARNINGS.md for decisions made while building this, and SKILLS.md for which tools/skills this project leaned on.
License
MIT — see LICENSE.
Maintenance
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
- Alicense-qualityDmaintenanceAn MCP server that provides AI assistants with access to documentation, schemas, and operations for over 535 n8n workflow automation nodes. It enables models to understand, create, and manage n8n workflows through natural language by connecting to the n8n API.Last updated196,443MIT
- AlicenseBqualityDmaintenanceA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and double-validated workflow creation.Last updated431MIT
- Alicense-qualityDmaintenanceMCP server for integrating with n8n, enabling workflow automation and management through natural language.Last updated3051MIT
- AlicenseAqualityBmaintenanceAn MCP server for n8n that gives AI agents tools for generating workflows, linting, diagnosing failed executions, and driving live n8n instances.Last updated1274MIT
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
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/dsvxmedia/tif-score-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server