> ## Documentation Index
> Fetch the complete documentation index at: https://docs.negentro.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Model Context Protocol (MCP) Server

> Official @piyapi/mcp-server providing standard stdio transport for IDE tools (Cursor, Windsurf, Claude Desktop, VS Code) with 30 Tools, 3 Resources, and 3 Prompts.

## IDE Configuration (Cursor / Windsurf / Claude Desktop)

```json JSON theme={null}
{
  "mcpServers": {
    "piyapi": {
      "command": "npx",
      "args": ["-y", "@piyapi/mcp-server"],
      "env": {
        "PIYAPI_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}
```

## Core Tools Catalog (from User Guide §6.2)

| TOOL NAME | INPUT PARAMETERS | DESCRIPTION |
| :- | :- | :- |
| store\_memory | content (str), tags (array), metadata (obj) | Store memory with vector embedding and graph links |
| get\_memory | id (uuid) | Retrieve specific memory object by UUID |
| search\_memories | query (str), limit (int), min\_score (float) | Hybrid search (semantic vector + BM25 trigram) |
| get\_context | query (str), max\_tokens (int) | Token-budget-aware context assembly for prompt injection |
| pin\_memory | id (uuid), is\_pinned (bool) | Pin/unpin memory in LLM context window budget |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.