Skip to main content
Glama

Fusemomo MCP Server

Overview

Fusemomo is Behavioral Entity Graph for AI agents. This MCP server is the primary integration surface a thin translation layer exposing Fusemomo's REST API as MCP tools compatible with Claude Desktop, Cursor, and any MCP client.

One sentence: Your agents call APIs blind. Fusemomo gives them eyes.


Related MCP server: Nexus

Installation

IMPORTANT

Do not put your API key in the config file. Set it once in your shell profile — the MCP server reads it from your system environment automatically.

Step 1 — Set your API key in your shell profile

Add the following line to your shell configuration file and restart your terminal (or run source):

macOS / Linux (bash/zsh):

# ~/.zshrc  or  ~/.bashrc  or  ~/.bash_profile
export FUSEMOMO_API_KEY="fm_live_your_key_here"

Windows (PowerShell profile):

# $PROFILE
$Env:FUSEMOMO_API_KEY = "fm_live_your_key_here"

Verify it is set:

echo $FUSEMOMO_API_KEY
# fm_live_...

Get your API key at fusemomo.com/dashboard/api-keys


Step 2 — Add to your MCP client config

Option A: npx (Recommended — no install needed)

{
  "mcpServers": {
    "fusemomo": {
      "command": "npx",
      "args": ["-y", "@fusemomo/fusemomo-mcp"]
    }
  }
}

Option B: Global install

npm install -g @fusemomo/fusemomo-mcp
{
  "mcpServers": {
    "fusemomo": {
      "command": "fusemomo-mcp"
    }
  }
}
NOTE

If your MCP client (e.g. Claude Desktop) spawns processes in a stripped environment and doesn't inherit your shell exports, add the reference explicitly — but still read it from the environment, not a hardcoded value:

{
  "mcpServers": {
    "fusemomo": {
      "command": "npx",
      "args": ["-y", "@fusemomo/fusemomo-mcp"],
      "env": {
        "FUSEMOMO_API_KEY": "${FUSEMOMO_API_KEY}"
      }
    }
  }
}

Replace ${FUSEMOMO_API_KEY} with $FUSEMOMO_API_KEY on Linux/macOS if your client supports shell expansion in env values.

Configuration

Variable

Required

Default

Description

FUSEMOMO_API_KEY

✅

—

Your FuseMomo API key (fm_live_... or fm_test_...)

FUSEMOMO_API_URL

—

https://api.fusemomo.com

API base URL (override for self-hosted)

FUSEMOMO_TIMEOUT

—

30000

HTTP timeout in milliseconds

LOG_LEVEL

—

info

Log verbosity: debug | info | warn | error

NODE_ENV

—

production

development for pretty-printed logs


Available Tools

resolve_entity

THIS MUST BE YOUR FIRST STEP in any workflow. Resolves one or more known identifiers into a canonical entity, creating it if it doesn't exist. You must call this to get the internal entity_id required by all other tools.

Required: identifiers (object: key=source, value=identifier)

Example:

"Resolve alice@example.com"
→ { "entity_id": "...", "tenant_id": "...", "display_name": "Alice", "identifiers": [...], "total_interactions": 14, ... }

log_interaction

Logs a behavioral event to the immutable interaction graph. This forms the graph that drives future ML recommendations. Call this whenever your agent takes an action through any API.

Required: entity_id, api, action_type, action, outcome, agent_id (Compulsory: identify your specific agent)

Example:

"Log that agent_outreach_v2 sent a payment reminder email to entity abc-123 via SendGrid, outcome: success"
→ { "interaction_id": "...", "entity_id": "...", "logged_at": "..." }

get_recommendation

Gets the highest-success action recommendation based on historical behavioral data. Call this before deciding what to do, so you can select the statistically best channel based on past data. Requires Builder plan.

Required: entity_id, intent

Example:

"What's the best way to recover payment from entity abc-123?"
→ { "data_sufficient": true, "confidence_score": 0.91, "primary": { "api": "sendgrid", "action_type": "send_email", "raw_success_rate": 0.85, ... }, "opportunity_set": [...] }

update_recommendation_outcome

Close the feedback loop. You MUST call this after attempting an action recommended by get_recommendation. Records whether you followed the advice and helps self-correct the future ML algorithm.

Required: recommendation_id, was_followed

Example:

"Mark recommendation rec-456 as followed"
→ { "recommendation_id": "...", "was_followed": true, "outcome": "success" }

get_entity

Retrieves a complete entity profile. Use this when you need absolute context on an entity's past behaviors and all linked identifiers before deciding how to approach them.

Required: entity_id

Example:

"Get the full profile for entity abc-123"
→ { "id": "...", "identifiers": [...], "interactions": [...], "behavioral_score": 0.82, ... }

Typical Agent Workflow

1. resolve_entity({ identifiers: { email: "customer@co.com" } })
   → get entity_id

2. get_recommendation({ entity_id, intent: "payment_recovery" })
   → get recommendation_id + recommended_action_type

3. // Agent executes action via external API...

4. log_interaction({ entity_id, api: "sendgrid", action_type: "send_email", ... })
   → get interaction_id

5. update_recommendation_outcome({ recommendation_id, was_followed: true, outcome_interaction_id })
   → feedback loop closed

Development

# Clone and install
git clone https://github.com/fusemomo/mcp-server.git
cd fusemomo-mcp
npm install

# Copy env
cp .env.example .env
# Edit .env with your API key

# Run in dev mode (hot reload)
npm run dev

# Type check
npm run typecheck

# Run tests
npm test

# Build
npm run build

NOTE

Backend API will be deployed soon!

Troubleshooting

Tool not showing up in Claude Desktop: Restart Claude Desktop after editing claude_desktop_config.json.

Authentication failed / FUSEMOMO_API_KEY missing: The server could not read your API key from the environment.

  1. Verify it is exported: echo $FUSEMOMO_API_KEY (should print your key)

  2. Ensure you added it to your shell profile (~/.zshrc, ~/.bashrc, etc.) and ran source <file> or opened a new terminal

  3. If using Claude Desktop (which may strip shell environments), add the env pass-through in the config — see the note in the Installation section above

  4. Key must start with fm_live_ or fm_test_

Recommendations return plan upgrade error: get_recommendation requires a Builder plan ($99/month). Upgrade at fusemomo.com/upgrade.

Connection refused: Verify FUSEMOMO_API_URL is reachable. Default: https://api.fusemomo.com.


License

MIT — see LICENSE

Available Tools

5 tools
get_entityB

Retrieve the complete behavioral profile and consolidated history of an entity. Provides historical success rates, behavioral scores, all linked identifiers, and recent interactions. Use this when you need absolute context on an entity's past behaviors before deciding how to approach them.

Inputs: entity_id (required).

get_recommendationB

Ask the intelligent engine for the statistically best action to take next for a given entity and intent. Based on historical data, this tool returns the exact communication channel or action type most likely to succeed. Call this before deciding what to do.

Inputs: intent (required), entity_id (required), agent_id, lookback_days, +1 more.

log_interactionB

Chronicle a specific action taken on an entity to build its behavioral profile. Use this to explicitly tell the system what you did, which tool you used, and what happened. This behavioral payload forms the graph that drives future ML recommendations.

Inputs: api (required), action (required), outcome (required), agent_id (required), +6 more.

resolve_entityA

Resolve external identifiers (e.g. Email, GitHub ID, Stripe ID) into a unified internal Fusemomo Entity. THIS MUST BE YOUR FIRST STEP in any workflow, as every other tool requires the internal entity_id returned here. If the entity does not exist, this tool automatically safely creates it.

Inputs: identifiers (required), metadata, entity_type, display_name.

update_recommendation_outcomeA

Close the feedback loop on a previously retrieved recommendation. Once you act upon a recommendation from get_recommendation, you MUST call this to inform the engine if the recommendation actually worked or failed. This self-corrects the algorithm.

Inputs: was_followed (required), recommendation_id (required), outcome_interaction_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool maps to a distinct stage in the entity/recommendation workflow. The only potential overlap is resolve_entity vs. get_entity, but their descriptions clearly distinguish external-ID resolution/creation from full internal-profile retrieval.

    Naming Consistency5/5

    All tool names use snake_case with a clear verb_noun pattern (get_entity, resolve_entity, log_interaction, get_recommendation, update_recommendation_outcome). The compound update_recommendation_outcome is slightly longer but still follows the same convention.

    Tool Count5/5

    Five tools is well-scoped for this workflow: resolve, retrieve, log, recommend, and close the feedback loop. Each tool earns its place with no filler or redundant operations.

    Completeness4/5

    The surface covers the core lifecycle: resolve/create entity, retrieve profile, log interactions, get recommendations, and report outcomes. Minor gaps include no list/search tool, no explicit merge/delete, and no direct update of entity metadata beyond resolution.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for agentic travel recommendations, exposing tools to retrieve member profiles and personalized travel recommendations with partner-specific rules and policies.
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables models to query enterprise systems—structured data, live GitHub REST API, and unstructured document embeddings—through a single, per-caller scoped MCP tool surface with task-shaped tools and recovery-aware errors.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides MCP tools that let an agent retrieve customer account, product usage, interaction, and support summaries, and create follow-up tasks after user approval.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to perform go-to-market workflows such as company and contact enrichment, CRM querying, and controlled, audited writes to a CRM through MCP tools callable from any MCP client.
      1
      MIT