Skip to main content

MCP-KG-Memory Server

Python MCP server implementation with Neo4j backend.

Development Setup

# Create virtual environment
python -m venv .venv
source .venv/bin/activate

# Install dependencies (including dev)
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Run server
python -m kg_mcp.main

Project Structure

src/kg_mcp/
├── main.py           # Entry point
├── config.py         # Settings management
├── llm/              # LLM integration
│   ├── client.py     # LiteLLM wrapper
│   ├── schemas.py    # Pydantic models
│   └── prompts/      # Prompt templates
├── kg/               # Knowledge graph
│   ├── neo4j.py      # Driver/client
│   ├── schema.cypher # DB schema
│   ├── repo.py       # Query repository
│   ├── ingest.py     # Ingestion pipeline
│   └── retrieval.py  # Context builder
├── mcp/              # MCP components
│   ├── tools.py      # Tool definitions
│   ├── resources.py  # Resource handlers
│   └── prompts.py    # Prompt templates
├── codegraph/        # Code indexing (V1)
│   ├── model.py      # Data models
│   └── indexer.py    # File indexer
└── security/         # Auth/Origin
    ├── auth.py       # Token validation
    └── origin.py     # Origin checking

Metadata

Release files for kg-mcp 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kg-mcp 0.1.10
File Size Uploaded
kg_mcp-0.1.10.tar.gz 57.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kg-mcp 0.1.10
File Interpreter ABI Platform
kg_mcp-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 123.3 kB

Release files / kg_mcp-0.1.10.tar.gz

Download URL kg_mcp-0.1.10.tar.gz
Size 57.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9acf43b456cfd80a19549a65eb28aa4f074c67a9921555bd3fd8242b6ea27eff
BLAKE2b-256 checksum
How to use checksums
ffb8a83fedc95ab8dcd0fa7cdc751e62fd4e3ebc0f921c4cc6e1569480aa7c35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 21, 2026.

Transparency log

Release files / kg_mcp-0.1.10-py3-none-any.whl

Download URL kg_mcp-0.1.10-py3-none-any.whl
Size 65.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eeba7a67c52ab1ec59eb190784e38770c647e24c0d2d331956a5f2417cc1121d
BLAKE2b-256 checksum
How to use checksums
f0834f0fd85cd7b96fa40c064b3e7725846666c729413d95efb8a4b43a35e65b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page