Use when you need to connect to the SciGraph SCP server for MatKG (autonomously generated materials-science knowledge graph extracted from >5M papers; entities include materials/properties/applications/synthesis) and call its MCP tools (query_cypher, get_kg_statistics, get_entity_details, get_experiment_workflow), including streamableHttp configuration with SCP-HUB-API-KEY and Python 3.10+ usage examples.
MatKG is a large-scale autonomously generated knowledge graph for materials science. It extracts entities (e.g., materials, properties, applications, synthesis methods) and relationships from >5 million papers using NLP techniques; relationships are built based on statistical co-occurrence frequency.
https://scp.intern-ai.org.cn/api/v1/mcp/37/SciGraphSCP-HUB-API-KEY: {API-KEY}pip install mcp
{
"mcpServers": {
"SciGraph": {
"type": "streamableHttp",
"description": "这是一款面向科学研究的统一知识查询服务,集成了化学、生物等多个学科领域的知识图谱数据,支持跨学科知识检索、实体关系查询、领域知识问答等操作",
"url": "https://scp.intern-ai.org.cn/api/v1/mcp/37/SciGraph",
"headers": {
"SCP-HUB-API-KEY": "{API-KEY}"
}
}
}
}
Execute a Cypher query and return JSON results.
Arguments:
cypher (string, required)kg_name (string|null, optional, default null)limit (int, optional, default 100)Example arguments (MatKG):
{
"cypher": "MATCH (e:Experiment:MatKG) RETURN e.id as experiment_id",
"kg_name": "MatKG",
"limit": 5
}
Return graph statistics.
Example arguments:
{ "kg_name": "MatKG" }
Return entity details.
Example arguments:
{ "entity_identifier": "experiment_1", "kg_name": "MatKG" }
Return the full workflow of an experiment.
Example arguments:
{ "experiment_id": "experiment_1" }
import asyncio
import json
from mcp.client.streamable_http import streamablehttp_client
from mcp.client.session import ClientSession
SERVER_URL = "https://scp.intern-ai.org.cn/api/v1/mcp/37/SciGraph"
async def main():
transport = streamablehttp_client(
url=SERVER_URL,
headers={"SCP-HUB-API-KEY": "sk-xxx"},
)
read, write, get_session_id = await transport.__aenter__()
session_ctx = ClientSession(read, write)
session = await session_ctx.__aenter__()
await session.initialize()
# Example: stats for MatKG
result = await session.call_tool(
"get_kg_statistics",
arguments={"kg_name": "MatKG"},
)
data = json.loads(result.content[0].text)
print(data)
await session_ctx.__aexit__(None, None, None)
await transport.__aexit__(None, None, None)
if __name__ == "__main__":
asyncio.run(main())
Venugopal, V., & Olivetti, E. (2024). MatKG: An autonomously generated knowledge graph in Material Science. Scientific Data, 11, 217. https://doi.org/10.1038/s41597-024-03039-z
For the full scraped page text, read:
references/source.md