The Neocarta MCP server has no configuration file. Every setting is read from environment variables at startup, which the server inherits from the shell or from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/neo4j-labs/neocarta/llms.txt
Use this file to discover all available pages before exploring further.
.env file in the working directory. This keeps configuration portable and compatible with any MCP client that accepts an env block (Claude Desktop, LangChain MCP adapters, etc.).
Environment Variables
Neo4j Connection
| Variable | Required | Default | Description |
|---|---|---|---|
NEO4J_URI | Yes | — | Neo4j connection URI, e.g. bolt://localhost:7687 or neo4j+s://...aura.graphenedb.com |
NEO4J_USERNAME | Yes | — | Neo4j username |
NEO4J_PASSWORD | Yes | — | Neo4j password |
NEO4J_DATABASE | No | neo4j | The Neo4j database to connect to. Use neo4j for the default database or AuraDB instances. |
Embedding Model
| Variable | Required | Default | Description |
|---|---|---|---|
EMBEDDING_MODEL | No | text-embedding-3-small | LiteLLM model identifier used to embed the agent’s query at search time. Must match the model used during ingest so query vectors and stored vectors are comparable. |
EMBEDDING_DIMENSIONS | No | auto-detected | Optional vector dimension override for models that support truncation. Must match the dimension the graph was embedded at. Models that do not support truncation ignore this value. |
EMBEDDING_BATCH_SIZE does not apply to the MCP server. The server embeds a single query string per tool call and never batches — that variable is only relevant during ingest with the embedding connectors.Auth for Embedding Providers
Embedding provider credentials are read by LiteLLM at call time. Set the variable for whichever provider yourEMBEDDING_MODEL targets:
OpenAI
OPENAI_API_KEYGoogle Gemini
GEMINI_API_KEYAzure OpenAI
AZURE_API_KEYAZURE_API_BASEAZURE_API_VERSIONAmazon Bedrock
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_REGION_NAMECohere
COHERE_API_KEYLiteLLM Proxy / Custom
Pass
api_key / api_base via litellm_kwargs in the Python API, or set them as LITELLM_* variables recognized by your proxy..env File Loading
The server callsload_dotenv() at startup before reading any settings. A .env file placed in the working directory from which the server is launched is automatically loaded — no extra flags required.
Here is a minimal .env file covering the most common setup (OpenAI embeddings, local Neo4j):
.env
.env for Azure OpenAI with a non-default dimension:
.env
Transport
The server runs exclusively over stdio (standard MCP transport). It does not expose an HTTP port and cannot be reached over the network directly — the MCP client is responsible for spawning the process and communicating over its stdin/stdout. This makes it compatible with any MCP-capable client:Claude Desktop
Add the
neocarta entry to claude_desktop_config.json. See Connecting to Claude Desktop.LangChain / LangGraph
Use the
langchain-mcp-adapters package to wrap the stdio server as a set of LangChain tools.Neocarta CLI
Every MCP tool is also available as
neocarta tool <tool-name> for shell use or non-MCP agents — no server process needed.Any MCP Client
Any client that supports the stdio MCP transport can connect by launching
neocarta-mcp as a subprocess.