Self-hosted long-term memory for AI systems. The LLM proposes, a deterministic pipeline decides.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add statecore --env MODEL_API_KEY='<MODEL_API_KEY>' -- npx -y statecore-mcp~/.codex/config.toml
[mcp_servers.statecore]
command = "npx"
args = ["-y", "statecore-mcp"]
env = { MODEL_API_KEY = "<MODEL_API_KEY>" }
# codex mcp add statecore --env MODEL_API_KEY='<MODEL_API_KEY>' -- npx -y statecore-mcp~/.cursor/mcp.json
{
"mcpServers": {
"statecore": {
"command": "npx",
"args": [
"-y",
"statecore-mcp"
],
"env": {
"MODEL_API_KEY": "<MODEL_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"statecore": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"statecore-mcp"
],
"env": {
"MODEL_API_KEY": "<MODEL_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"statecore": {
"command": "npx",
"args": [
"-y",
"statecore-mcp"
],
"env": {
"MODEL_API_KEY": "<MODEL_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"statecore": {
"command": "npx",
"args": [
"-y",
"statecore-mcp"
],
"env": {
"MODEL_API_KEY": "<MODEL_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"statecore": {
"command": "npx",
"args": [
"-y",
"statecore-mcp"
],
"env": {
"MODEL_API_KEY": "<MODEL_API_KEY>"
}
}
}
}Environment variables
MODEL_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.