Integrates with VS Code through the Copilot Chat interface to provide access to knowledge graphs. Requires an active GitHub Copilot subscription to use MCP features.
Provides a Python-based MCP server for querying Proto-OKN knowledge graphs, with specialized support for FRINK-hosted knowledge graphs and SPARQL endpoints.
MCP Server Proto-OKN
A Model Context Protocol (MCP) server that provides tools for querying SPARQL endpoints, with specialized support for Proto-OKN (Prototype Open Knowledge Network) knowledge graphs hosted on the FRINK platform.
Features
- FRINK Integration: Automatic detection and documentation linking for FRINK-hosted knowledge graphs
- Proto-OKN Support: Optimized for querying knowledge graphs in the Proto-OKN ecosystem including:
- SPOKE (Scalable Precision Medicine Open Knowledge Engine)
- BioBricks ICE (Chemical safety and cheminformatics)
- DREAM-KG (Addressing homelessness with explainable AI)
- SAWGraph (Safe Agricultural Products and Water monitoring)
- And many other Proto-OKN knowledge graphs
- Flexible Configuration: Support for both FRINK and custom SPARQL endpoints
- Automatic Documentation: Registry links for supported knowledge graphs
Installation
Prerequisites
- Install VS Code Insiders (required for MCP support)Download and install VS Code Insiders from https://code.visualstudio.com/insiders/VS Code Insiders is needed because it includes the latest MCP (Model Context Protocol) features.
- Install GitHub Copilot extension (required for MCP integration)
- Open VS Code Insiders
- Install the GitHub Copilot extension from the marketplace
- Sign in with your GitHub account that has Copilot access
- Note: You need an active GitHub Copilot subscription to use MCP features
MCP servers integrate with VS Code through the Copilot Chat interface.
- Install uv (Python package manager)
Setup Instructions
- Clone and setup the project
- Configure the MCP serversThis project includes a pre-configured
.vscode/mcp.json
file with multiple Proto-OKN knowledge graph endpoints. You need to update the commands to use the newmcp-server-protookn
:Edit.vscode/mcp.json
and update the server configurations:The existing file contains configurations for all major Proto-OKN knowledge graphs. You can enable/disable specific servers by adding or removing them from the configuration. - Start using the MCP server
- Open VS Code Insiders
- Open a new chat window
- The MCP servers should automatically connect and provide access to the knowledge graphs
Quick Start: Query a Knowledge Graph
Once everything is set up, you can start querying knowledge graphs through the VS Code chat interface:
Example prompts to try:
- Explore the SPOKE knowledge graph structure:
- Query that combines multiple entity types:
- Query across multiple KGs:
The chat interface will use the MCP server to execute SPARQL queries against the configured endpoints and return structured results.
Alternative Installation Methods
Using uvx (standalone execution)
Usage
Command Line Parameters
The MCP server accepts the following command line arguments:
Required:
--endpoint
: SPARQL endpoint URL (e.g.,https://frink.apps.renci.org/spoke/sparql
)
Optional:
--description
: Custom description for the SPARQL endpoint (automatically generated for FRINK endpoints)
Command Line
Tool: query
Execute a SPARQL query against the configured endpoint.
Parameters:
query_string
: A valid SPARQL query stringdescription
: Custom description for the SPARQL endpoint (automatically generated for FRINK endpoints)
Returns:
- The query results in JSON format
Links
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that provides tools for querying SPARQL endpoints, with specialized support for Proto-OKN knowledge graphs hosted on the FRINK platform.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -4691MIT License
- -securityFlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -1TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that provides read-only access to Ontotext GraphDB, enabling LLMs to explore RDF graphs and execute SPARQL queries.Last updated -28JavaScriptGPL 3.0
- -securityAlicense-qualityA Model Context Protocol server for MarkLogic that enables CRUD operations and document querying capabilities through a client interface.Last updated -PythonMIT License