Skip to main content
Glama

PiyAPI SDKs and integrations

Client libraries and app integrations for PiyAPI by Negentro, the memory layer for AI agents: 84.1% on BEAM-1M, 93.6% on LongMemEval-S and 97% fewer tokens than the full history, with every answer published.

Start for free · Docs · Benchmarks

Packages

Package

For

Install

@piyapi/sdk

TypeScript and JavaScript

npm install @piyapi/sdk

piyapi-memory

Python

pip install piyapi-memory

@piyapi/mcp-server

Claude Code, Cursor, Codex, Claude Desktop, VS Code, Windsurf, Zed and other MCP clients

npx -y @piyapi/mcp-server install cursor --api-key YOUR_KEY

@piyapi/ai-sdk

Vercel AI SDK: memory middleware and tools

npm install @piyapi/ai-sdk ai zod

piyapi-langchain

LangChain vector store

pip install piyapi-langchain

piyapi-langgraph

LangGraph long-term memory store

pip install piyapi-langgraph

piyapi-llamaindex

LlamaIndex memory block

pip install piyapi-llamaindex

@piyapi/memory-widget

A web component that lets your users see, correct and forget what is remembered about them

npm install @piyapi/memory-widget

integrations/ holds ready-made plugins, extensions, rules and configuration for Claude Code, Claude Desktop, the Claude API, Antigravity, Gemini CLI, Codex, the OpenAI APIs, Cursor, VS Code, Windsurf and Zed.

Related MCP server: Mnemoverse Memory

Quick start

import { PiyAPIClient } from "@piyapi/sdk";

const client = new PiyAPIClient({ apiKey: process.env.PIYAPI_API_KEY! });

await client.memories.create({ content: "User prefers concise answers", namespace: "user_123" });

const { results } = await client.search.semantic("How should I format replies?", {
  namespace: "user_123",
  limit: 5,
});
from piyapi_memory import PiyAPIClient

client = PiyAPIClient(api_key="YOUR_PIYAPI_API_KEY")
client.create_memory(content="User prefers concise answers", namespace="user_123")
results = client.hybrid_search(query="How should I format replies?", namespace="user_123", limit=5)

Development

Each package builds and tests on its own: npm install && npm test in an npm package, pip install -e ".[dev]" && pytest in a Python one. Issues and pull requests are welcome.

Licence

MIT, see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Self-hosted MCP-native agent memory server. Gives AI agents persistent, decay-weighted memory via 83 MCP tools — no cloud, full control. RocksDB+HNSW backend. Works with Claude Code, Cursor, and any MCP-compatible agent.
      14
      9
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Persistent memory server for AI assistants with semantic search and three-layer context (global, project, personality). Works with MCP-compatible AI tools like Claude Code, Cursor, Continue, Cline, and more.
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Long-term memory for Claude Code, Cursor, and MCP clients with zero-config embedded PostgreSQL. Stores and retrieves facts, preferences, and decisions using 4-channel semantic, BM25, entity, and temporal search with cross-encoder reranking.
      1
      Apache 2.0