MCP Integration
Use Functor memory tools with Claude Desktop, Claude Code, and any MCP-compatible client.
What is MCP?
The Model Context Protocol (MCP) is an open standard that enables AI assistants to connect with external tools and data sources. Claude Desktop, Claude Code, and other MCP-compatible clients can use Functor memory tools directly.
Quick Start
Step 1: Generate MCP Tools
Use the SDK to generate MCP-format tool definitions:
Step 2: Create Tool Handler
Create a handler function that executes tool calls:
Step 3: Integrate with MCP Server
Use the generated tools and handler in your MCP server:
Claude Desktop Configuration
Add Functor to your Claude Desktop configuration file:
Config File Location
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\\Claude\\claude_desktop_config.json
Claude Code Integration
For Claude Code, add Functor to your MCP configuration:
Complete MCP Server Example
Here's a complete MCP server implementation:
Example Tool Calls
Once configured, Claude can use Functor memory tools naturally:
User:
"Remember that I prefer Python over JavaScript for backend development"
Claude (using functor_personalization_add_preference):
I've stored your preference for Python over JavaScript for backend development. I'll remember this for future conversations.
User:
"What did we discuss yesterday about the API design?"
Claude (using functor_episodic_search):
Yesterday we discussed REST vs GraphQL for your API. You decided to use REST with OpenAPI documentation. We also talked about authentication using JWT tokens...
Available MCP Tools
All 71 memory tools are available in MCP format. Here are some commonly used ones:
| Tool Name | Description |
|---|---|
| functor_episodic_create | Store a conversation or interaction |
| functor_episodic_search | Search past conversations |
| functor_semantic_add_fact | Store a knowledge fact |
| functor_personalization_add_preference | Store user preference |
| functor_personalization_get_context | Get personalized context for user |
| functor_procedural_create | Store a learned procedure |