AWS Neptune Support for MCP Server#1084
Open
apetti1920 wants to merge 11 commits intogetzep:mainfrom
Open
Conversation
Member
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
8df1283 to
fb49a25
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds AWS Neptune database provider support to the Graphiti MCP server. While the
graphiti-corelibrary already supports Neptune, the MCP server lacked the configuration and factory logic to expose it. This PR implements full Neptune integration with proper validation, configuration management, and comprehensive testing.Type of Change
Objective
Rationale: AWS Neptune (both Database and Analytics variants) provides a fully-managed graph database service that many enterprise users prefer over self-hosted solutions. The core library supports Neptune, but the MCP server couldn't utilize it due to missing configuration schema and factory implementations.
Goals:
--database-provider neptuneCLI flagImplementation Details
Configuration Layer (
mcp_server/src/config/schema.py)NeptuneProviderConfigclass with validation for:neptune-db://orneptune-graph://)DatabaseProvidersConfigFactory Layer (
mcp_server/src/services/factories.py)Service Layer (
mcp_server/src/graphiti_mcp_server.py)--database-providerchoicesConfiguration Files
graphiti-core[neptune]extras (version bumped to 1.0.2)Dependencies Added
boto3>=1.39.16- AWS SDK for Pythonbotocore>=1.41.2- AWS SDK coreopensearch-py>=3.1.0- OpenSearch client for AOSSlangchain-aws>=1.1.0- LangChain AWS integrationsTesting
test_neptune_configuration.py: Comprehensive integration tests with mocked AWS credentialstest_neptune_simple.py: Standalone validation testsBreaking Changes
No breaking changes. This is a purely additive feature that:
Configuration Example
Or via environment variables:
Or via CLI:
AWS Credential Support
Neptune integration works with standard AWS credential chain:
aws configure)AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY)~/.aws/credentials)Checklist
.config/uv.tomladded to prevent private registry pollution in open-source projectFiles Changed
config/config.yaml,pyproject.tomlsrc/config/schema.pysrc/services/factories.pysrc/graphiti_mcp_server.pydocker/Dockerfile,docker/Dockerfile.standalonetests/test_neptune_configuration.py,tests/test_neptune_simple.pyuv.lockRelated Issues
Resolves internal request for AWS Neptune support in MCP server