Give your MCP-compatible agent — Claude Code, Cursor, Goose, or any other — access to ThreatRecall's memory layer. One npm package, one config file, done.
Open your terminal and install the ThreatRecall MCP server package.
npm install -g @threatrecall/mcp-server
threatrecall-mcp command is available in your terminal.Create a settings file for your agent. The location depends on your tool:
{
"mcpServers": {
"threatrecall": {
"command": "npx",
"args": ["-y", "@threatrecall/mcp-server"],
"env": {
"THREATRECALL_API_KEY": "your_api_key_here",
"THREATRECALL_WORKSPACE_URL": "https://app.threatrecall.ai"
}
}
}
}
~/.cursor/mcp.json. For Goose, check the docs for ~/.config/goose/mcp.json — the format is identical.
Close and reopen Claude Code (or whichever agent you're using). It will discover the ThreatRecall MCP server on startup.
# Restart Claude Code — the MCP server will be detected automatically
claude
Once running, your agent can use these tools directly. Try asking it something like this:
Search ThreatRecall for any CVEs related to Log4Shell. Show me the affected actors and any associated IOCs.
Your agent gets these tools automatically:
| Tool | Description |
|---|---|
| threatrecall_recall | Natural language search across your CTI knowledge base. Returns actors, CVEs, IOCs, TTPs with confidence scores. |
| threatrecall_get_node | Look up a specific entity by ID or alias. Returns the node and all its outgoing edges. |
| threatrecall_query_graph | Run a structured graph query: traverse relationships between nodes, filter by type. |
| threatrecall_add_node | Create a new entity in your knowledge graph. Specify type, name, and optional metadata. |
| threatrecall_add_edge | Add a relationship between two existing nodes. Specify relationship type and confidence. |
Ask your agent to run this command to confirm everything is working:
Use threatrecall_recall to find any entities related to "ransomware" and tell me how many results came back.
mcpServers key in your JSON file is plural. Also try running npx -y @threatrecall/mcp-server --version to verify the package installed.
mcp.json file.