Decentralized Knowledge Hub for AI
This repository contains a Model Context Protocol (MCP) server implementation for Stitch AI's memory management system. The server provides tools for creating, retrieving, and managing AI agent memories.
The MCP server provides the following tools:
Creates a new memory space with the specified name.
- Parameters:
space_name
: The name of the memory space to createtype
: The type of memory space to create
Deletes a memory space with the specified name.
- Parameters:
space_name
: The name of the memory space to delete
Gets a list of all available memory spaces.
- Parameters: None
Uploads a new memory to a specified memory space.
- Parameters:
space
: The name of the memory space to upload tomessage
: The memory message to uploadmemory
: The memory content to upload
Retrieves a specific memory by ID from a memory space.
- Parameters:
space
: The name of the memory spacememory_id
: The ID of the memory to retrieve
Retrieves all memories from a specified memory space.
- Parameters:
space
: The name of the memory space to retrieve memories from- Optional Parameters:
memory_names
: Comma-separated list of memory names to filterlimit
: Maximum number of memories to return (default: 50)offset
: Number of memories to skip (default: 0)
npm run start
-
Clone the repository
git clone https://github.com/StitchAI/stitch-ai-mcp.git
-
Install dependencies
npm install @modelcontextprotocol/sdk zod npm install -D @types/node typescript
-
Install Claude for Desktop
- Download and install the latest version from Claude's website
-
Configure Claude for Desktop
- Locate your Claude for Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%AppData%\Claude\claude_desktop_config.json
- macOS:
- Create the file if it doesn't exist
- Locate your Claude for Desktop configuration file:
-
Edit Configuration File
- Open the configuration file in a text editor:
- macOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
- Windows:
code $env:AppData\Claude\claude_desktop_config.json
- macOS:
- Add your MCP server configuration:
- Open the configuration file in a text editor:
{
"mcpServers": {
"stitchai": {
"command": "npx",
"args": [
"ts-node",
"/path/to/cloned/stitch-ai-mcp/src/server.ts"
],
"env": {
"API_KEY": "<STITCH_AI_API_KEY>",
"BASE_URL": "https://api-demo.stitch-ai.co"
}
}
}
}
- Restart Claude for Desktop
- After saving the configuration file, restart Claude for Desktop
- The MCP UI elements will appear in Claude for Desktop once at least one server is properly configured