Pieces MCP Net
@jimbobbennett
An MCP server to interact with Pieces LTM
概要
What is Pieces MCP Net?
Pieces MCP Net is a C# implementation of the Model Context Protocol (MCP) that uses Pieces Long‑Term Memory to answer questions about data from the past 7 days. It integrates with the Pieces C# SDK and is intended for users who want to query Pieces LTM through MCP‑compatible clients like Claude for Desktop.
How to use Pieces MCP Net?
Install .NET 9 SDK and the Pieces app with the LTM engine enabled. Build and publish a single binary using dotnet publish -r <platform>, then register the binary in your claude_desktop_config.json under the mcpServers key. After relaunching Claude, prompt with “Ask Pieces LTM ” and allow the Pieces tool for the chat.
Key features of Pieces MCP Net
- Answers questions using Pieces Long‑Term Memory (last 7 days)
- Self‑contained single‑file binary output
- Registered via standard MCP JSON configuration
- Built on the Pieces C# SDK
- Designed for use with Claude for Desktop
Use cases of Pieces MCP Net
- Querying recent Pieces LTM context from an MCP client
- Integrating Pieces memory into AI assistant workflows
- Testing Pieces LTM integration with Claude for Desktop
FAQ from Pieces MCP Net
What is Pieces LTM?
Pieces Long‑Term Memory (LTM) is a feature of the Pieces app that stores and retrieves context from your recent coding activity.
What are the system requirements?
.NET 9 SDK and the Pieces app with the LTM engine enabled must be installed.
How do I build the server?
Run dotnet publish -r <platform>, replacing <platform> with your runtime identifier (e.g., win-x64). A single executable named PiecesMCPNet is created in the publish folder.
How do I connect this server to Claude for Desktop?
Add an entry to claude_desktop_config.json with the command set to the full path of the PiecesMCPNet binary under the key "PiecesLTM".
Can I change the 7‑day memory limit?
The 7‑day limit is hard‑coded, but the README notes the code can be expanded to make it configurable.