Amazon Neptune is a fully managed graph database service by Amazon Web Services (AWS). It's designed to store and query billions of relationships with low latency, making it suitable for applications that rely on highly connected datasets.
This directory contains several examples of how to use Strands Agent SDK with Amazon Neptune.
Within this directory there are several example Python files:
- memory_kg_mcp_example.py - This example demonstrates how to use the Amazon Neptune Memory MCP server and Perplexity MCP server to research a topic and generate a knowledge graph from the researched information.
- query_mcp_example.py - This example demonstrates how to use the Amazon Neptune MCP server to generate and run queries against a Neptune Database or Neptune Analytics instance.
- use_aws_example.py - This example demonstrates how to use the
use_awstool to perform control or data plane actions against a Neptune Database or Neptune Analytics instance.
| Feature | Description |
|---|---|
| Agent Structure | Single-agent architecture |
| Native Tools | use_aws |
| MCP Servers | Neptune Query, Neptune Memory. Perplexity Ask MCP Server |
| Model Provider | Amazon Bedrock |
- Install uv.
- Configure AWS credentials, follow instructions here.
- Create a .env file using .env.template
Run the example using uv run <SELECT EXAMPLE FILE TO RUN> <PROMPT>.
-
uv run use_aws_example.py "Run this query: MATCH (n) RETURN n LIMIT 10" -
uv run query_mcp_example.py "Find me a flight from Seattle to New York that goes through Chicago?" -
uv run memory_kg_example.py "I work on the Amazon Neptune team. I am currently building and testing MCP servers with the Strands Agent SDK to show how you can Amazon Neptune with an agent framework to store memories in the form of a knowledge graph. I am interested in what key considerations I should take into account?"
