TOS Bridge MCP Server
Provides graph database integration for storing documents as Document nodes with Qdrant cross-references, creating Entity nodes and typed relationships, and traversing shared entities to enhance semantic search and discover related documents.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
TOS Bridge MCP Server v0.2.0
MCP Server bridging Claude Desktop/Code to VPS-hosted Qdrant + Neo4j. Provides graph-enhanced semantic search (GraphRAG), dual-store writes, entity/relationship CRUD, and cross-document discovery — all through a single MCP server.
Tools (8)
Infrastructure
check_tos_health — Monitor Qdrant and Neo4j connectivity, latency, node/collection counts.
sync_to_tos — Batch-sync patterns to Qdrant and/or Neo4j.
patterns: List of{text, source, category, importance}dictstarget: "qdrant", "neo4j", or "both" (default: "both")collection: Qdrant collection name
Document Storage & Search (GraphRAG)
store_doc_with_graph — Store document in Qdrant with Neo4j graph cross-reference.
Creates a Document node in Neo4j with MENTIONS/REFERENCES edges to Entity nodes,
and upserts the embedded vector to Qdrant — all in one tool call. Handles both
named vectors (e.g. dense) and unnamed default vectors automatically.
text: Document content, stored and embedded in fullcollection: Qdrant collection nametitle: Document titlepath: The document's identity. Re-storing the same path replaces the documentsummary,metadata: Optional enrichmententities:[{name, type, importance}]— creates Entity nodes linked via MENTIONSrelationships:[{target, rel_type, context}]— creates additional typed edgesReturns:
qdrant_id,neo4j_id, entity/relationship counts,chunks,body_chars
Long text becomes several Qdrant points. Point 0 keeps the id derived from path
and is the document; the rest carry parent_id, and each holds its own span in
text with chunk_index and chunk_count. The spans concatenate to the original
exactly. Qdrant holds the only copy of the text: the Neo4j Document node keeps the
summary and the qdrant_id that points back.
get_doc — Read a document's full text back, by path, title or qdrant_id.
Reassembles chunks, and reads older points that hold their text in body,
metadata.body or _document. A point stored before bodies were kept returns empty
text with body_source: null.
collection and title are semantically required but carry "" defaults so the
call still reaches the server when a malformed tool-call envelope folds them into
text; the server unpicks the envelope and stores the document correctly. When
they are genuinely absent nothing is stored and the error names that cause,
instead of the misleading "expected string, received undefined". See
arg_recovery.py.
search_with_graph — Graph-enhanced semantic search (GraphRAG).
Embeds the query, searches Qdrant, then expands results via Neo4j shared-entity
traversal. Documents connected through the knowledge graph get score boosts.
query,collection: Requiredlimit: Max results (default 10)relationship_boost: Score boost for graph-connected docs (0.0–0.5, default 0.2)include_graph_context: Include entity connections in resultsReturns: Reranked results, one per document, with original/boosted scores,
excerpt(the best-matching chunk),path,discovered_via_graphflag
find_related_docs — Graph traversal from a known document.
Finds documents connected to a source document through shared Neo4j entities.
qdrant_id: Source document's Qdrant UUIDmax_depth: Traversal depth 1–3 (default 2)limit: Max related docs (default 10)include_paths: Include relationship type pathsReturns: Related documents with distance, shared entities, relationship types
Entity & Relationship CRUD (v0.2.0)
create_or_update_entities — Create or update entities with observations.
Uses MERGE for deduplication: existing entities get new observations appended
(deduped), new entities are created. Replaces neo4j-memory-remote:create_entities
add_observations.
entities:[{name, type, observations: [...]}]check_existing: If true (default), MERGE; if false, always CREATEReturns: created, updated, total counts
create_relationships — Create typed relationships between entities.
Uses MERGE safety — auto-creates missing entities as concept type.
Replaces neo4j-memory-remote:create_relations.
relationships:[{from_entity, to_entity, rel_type, context}]Returns: created count
find_entities — Search entities by name (case-insensitive substring).
Returns entities with their observations, types, and which documents mention them.
Use for deduplication before creating new entities. Replaces
neo4j-memory-remote:search_memories + find_memories_by_name.
query: Search stringentity_type: Optional type filterlimit: Max results (default 20)Returns: Matching entities with observations and document references
Related MCP server: IEEE MCP Server
Installation
git clone https://github.com/No-Smoke/tos-bridge.git
cd tos-bridge
python -m venv .venv
source .venv/bin/activate
pip install -e .Environment Variables
Variable | Required | Default | Description |
| Yes |
| Qdrant server URL |
| Yes | — | Qdrant API key |
| Yes |
| Neo4j connection URI |
| No |
| Neo4j username |
| Yes | — | Neo4j password |
| No |
| Ollama embedding server |
| No |
| Embedding model (1024 dims) |
Claude Desktop Configuration
{
"mcpServers": {
"tos-bridge": {
"command": "/path/to/tos-bridge/.venv/bin/python",
"args": ["-m", "tos_bridge"],
"env": {
"QDRANT_URL": "http://your-vps:6333",
"QDRANT_API_KEY": "your-api-key",
"NEO4J_URI": "bolt://your-vps:7687",
"NEO4J_USER": "neo4j",
"NEO4J_PASSWORD": "your-password",
"OLLAMA_URL": "http://nuc-ip:11434"
}
}
}
}Neo4j Schema
Required indexes (create manually or let TOS-bridge auto-create):
CREATE INDEX doc_qdrant_id IF NOT EXISTS FOR (d:Document) ON (d.qdrant_id);
CREATE INDEX doc_collection IF NOT EXISTS FOR (d:Document) ON (d.qdrant_collection);
CREATE INDEX entity_name IF NOT EXISTS FOR (e:Entity) ON (e.name);Node labels: Document (with qdrant_id cross-ref), Entity (with observations list).
Relationship types: MENTIONS (Document→Entity), REFERENCES (Document→Entity),
plus any custom types created via create_relationships.
Architecture
┌─────────────────┐ ┌─────────────────┐
│ Claude Desktop │────▶│ TOS-Bridge │
│ or Claude.ai │ │ MCP Server │
└─────────────────┘ └────────┬────────┘
│
┌────────────┼────────────┐
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ Qdrant │ │ Neo4j │ │ Ollama │
│ (vectors)│ │ (graph) │ │(embeddings)
└──────────┘ └──────────┘ └──────────┘What TOS-bridge Does NOT Replace
These still require direct tool access:
qdrant-new: Collection admin, delete_documents, hybrid_search, index_codebase, search_code
neo4j-mcp-remote: Raw Cypher queries for complex multi-hop analysis
neo4j-memory-remote: delete_entities, delete_observations, delete_relations, read_graph
Changelog
v0.2.0 (2026-03-14)
New tools:
create_or_update_entities,create_relationships,find_entitiesFixed:
graph_tools.pynow handles named vectors via_get_collection_vector_nameFixed:
sync_to_tosQdrant path — was a placeholder, now embeds and upsertsRemoved: Redundant
graph_tools_1.pyChat-completion parity: TOS-bridge can now serve as the primary memory tool for Claude's chat-completion workflow (Phase 2), replacing separate qdrant-new + neo4j-memory-remote calls
v0.1.0 (2026-02-04)
Initial release: health checks, pattern sync
Graph-enhanced search (store_doc_with_graph, search_with_graph, find_related_docs)
Circuit breakers for Qdrant, Neo4j, and Ollama
Neo4j connection pooling with retry logic
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables document ingestion and typed knowledge graph queries through Claude MCP tools, allowing agents to extract, store, and retrieve typed entities and relations from documents.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to query Neo4j graph databases and Box document storage using natural language through a single MCP endpoint.-
- FlicenseNot gradedqualityAmaintenanceEnables Claude Code to maintain cross-session memory using self-hosted Qdrant vector storage, optional Neo4j knowledge graphs, and Ollama embeddings, with Anthropic or Ollama as the main LLM. It exposes MCP tools for adding, searching, updating, deleting, and graphing memories, plus hooks for automatic context injection and session summarization.-
- FlicenseNot gradedqualityAmaintenanceEnables Claude Code to use a self-hosted persistent memory layer backed by Qdrant, Neo4j, and Ollama, with Anthropic or Ollama as the main LLM. It provides MCP tools to add, search, update, delete, and graph memories across sessions.-