Overview
Pieces MCP Net is a C# implementation of the Model Context Protocol (MCP) that allows interaction with Pieces Long-Term Memory (LTM) to answer questions based on recent data.
To use Pieces MCP Net, install the .NET 9 SDK and the Pieces application with the LTM engine enabled. Build the project using the provided command, register it with Claude for Desktop, and invoke it by asking questions prefixed with 'Ask Pieces LTM'.
- C# implementation of MCP for seamless integration with Pieces LTM. - Ability to answer questions based on the last 7 days of data. - Configurable build options for different platforms.
- Integrating with desktop applications to provide contextual answers.
- Enhancing user interactions by leveraging recent memory data.
- Developing tools that require real-time data responses from LTM.
Add to your AI client
Use these steps to connect Pieces MCP Net in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"piecesmcpnet-jimbobbennett": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-piecesmcpnet-jimbobbennett"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"piecesmcpnet-jimbobbennett": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-piecesmcpnet-jimbobbennett"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"piecesmcpnet-jimbobbennett": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-piecesmcpnet-jimbobbennett"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"piecesmcpnet-jimbobbennett": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-piecesmcpnet-jimbobbennett"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"piecesmcpnet-jimbobbennett": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-piecesmcpnet-jimbobbennett"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"piecesmcpnet-jimbobbennett": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-piecesmcpnet-jimbobbennett"
]
}
}
}FAQ
What is the Model Context Protocol (MCP)?
MCP is a protocol designed to facilitate context-aware interactions between applications and memory systems.
How do I build the project?
Use the command `dotnet publish -r <platform>` to create a self-contained executable.
Can I configure the data retention period?
Currently, the 7-day limit is hard coded, but it can be expanded in the code.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2535,"uuid":"2ce61ae7-c750-4280-83eb-58a95d81b9c6","name":"PiecesMCPNet","title":"Pieces MCP Net","description":"An MCP server to interact with Pieces LTM","avatar_url":"https://avatars.githubusercontent.com/u/1710385?v=4","created_at":"2025-03-13T08:40:20.976+00:00","updated_at":"2025-03-23T14:44:46.796+00:00","status":"created","author_name":"jimbobbennett","author_avatar_url":"https://avatars.githubusercontent.com/u/1710385?v=4","tags":"piecesmcpnet,mcp-server,long-term-memory","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/jimbobbennett/PiecesMCPNet","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/jimbobbennett/PiecesMCPNet/raw/main/img/Claude.gif","type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"C#\",\"is_official\":false,\"latest_commit_time\":\"2025-03-19 08:34:56\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]