LitCoin MCP Server - Semantic + Structural Knowledge Graph query for AI agents
Project description
LitCoin MCP Server
MCP server for the LitCoin Knowledge Graph (KG) - query LitCoin knowledge graph for nodes, edges, relationships as well as semantic similarity search over nodes and relationships. It supports semantic + structural LitCoin knowledge graph access for AI agents via MCP.
This MCP server exposes the following tools:
- get_node(node_id: CURIE str)
- Get information about a specific node by CURIE.
- get_node_edges(node_id: CURIE str)
- Get all edges connected to a node.
- get_edges_between(source_id: CURIE str, target_id: CURIE str)
- Find all edges connecting two nodes by CURIEs
- get_semantic_similar_nodes(query: str, top_k: int = 10, k_per_index: int = 2)
- Find top_k semantically similar nodes to an input text query
- get_semantic_similar_edges(query: str, top_k: int = 10, k_per_index: int = 2)
- Find top_k semantically similar relationships to an input text query
Note that for semantic search tools to work, this MCP server assumes Neo4j embedding vector indexes already exist.
Response Format
- All responses are JSON serializable.
- Embedding vectors stored in Neo4j are never returned to the client.
- Semantic search results are sorted by similarity score (descending).
Recommended Usage: Use with uvx
No installation needed! Use uvx to run the server in isolated environments.
Configuration
Environment Variables
The following environmental variables must be configured for this LitCoin MCP Server:
- OPENAI_API_KEY - OPENAI API Key for semantic search related tools
such as get_semantic_similar_nodes and get_semantic_similar_edges.
the embedding vectors for nodes and edges in the LitCoin KG were created
using the
text-embedding-3-smallmodel from OpenAI. It's recommended to use the same model to generate embeddings for input text queries to ensure dimensional compatibility for semantic search related tools. - NEO4J_USERNAME - LitCoin Neo4j server authentication username.
- NEO4J_PASSWORD - LitCoin Neo4j server authentication password.
- NEO4J_URI - LitCoin Knowledge Graph endpoint (default:
bolt://litcoin-graph.apps.renci.org:7687)
MCP CLient (e.g., Goose, Claude Desktop) Configuration
Using uvx
The easiest way to use this MCP server is with uvx, which runs it in isolated environments without installation:
{
"mcpServers": {
"litcoin": {
"command": "uvx",
"args": ["litcoin-mcp"]
}
}
}
For Local Development
When running from source, use the full uv command:
{
"mcpServers": {
"robokop": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/litcoin-mcp",
"python",
"run_server.py"
]
}
}
}
Note: Replace /absolute/path/to/litcoin-mcp with your actual path.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file litcoin_mcp-0.1.0.tar.gz.
File metadata
- Download URL: litcoin_mcp-0.1.0.tar.gz
- Upload date:
- Size: 94.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47a03f7806adfa20d2d9bdd9a6e4b4c5f78a30bd1122ec1f0c3b2cc16d8dc957
|
|
| MD5 |
ba5a992e0f853c0603ed33d2c8a0e5bf
|
|
| BLAKE2b-256 |
a015b00e81334a3a65510636abd588dd7fb0509613fd7e5c8c4567c1a45d9c66
|
File details
Details for the file litcoin_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: litcoin_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8130b679a9007d7d8df38b1f3187946bb23db94fc54398bd46444474b354e6ef
|
|
| MD5 |
cefe8050299adc1409437e6b92328209
|
|
| BLAKE2b-256 |
b2f4ddbd10f893d9f8f230f5b1b813ac460cde7795405fb5642b16508199ab8d
|