Ontology MCP
The Ontology MCP server connects GraphDB's SPARQL endpoint with various AI models (Ollama, OpenAI, Gemini), serving as a Model Context Protocol server for Claude.
SPARQL Operations:
Execute queries and updates on GraphDB repositories
List repositories and named graphs
Retrieve resource information by URI
Ollama Integration:
Run, download, list and delete models
Perform chat completions
Check server status
OpenAI Features:
Execute chat completions
Generate images via DALL-E
Text-to-speech and speech-to-text conversion
Generate text embeddings
Gemini AI:
Generate text and chat completions
List available models
Image/video generation capabilities (some currently disabled)
HTTP Requests:
Execute GET, POST, PUT, DELETE, and PATCH requests to external APIs
Data Management:
Import RDF data into GraphDB repositories
Manage ontologies
Uses Docker to run GraphDB and provide SPARQL endpoint functionality
Provides access to Gemini models for text generation, chat completion, and model listing with support for various Gemini model variants
Enables running, managing, and interacting with Ollama models including execution, information retrieval, downloading, listing, deletion, and chat completion
Provides access to OpenAI services including chat completion, image generation, text-to-speech, speech-to-text, and embedding generation
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Ontology MCP query the schema.org ontology for all classes related to books"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Ontology MCP
Ontology MCP is a Model Context Protocol (MCP) server that connects GraphDB's SPARQL endpoints and Ollama models to Claude. This tool allows Claude to query and manipulate ontology data and leverage various AI models.

Key Features
SPARQL related functions
Execute SPARQL query (
mcp_sparql_execute_query)Execute SPARQL update query (
mcp_sparql_update)List repositories (
mcp_sparql_list_repositories)Query the graph list (
mcp_sparql_list_graphs)Get resource information (
mcp_sparql_get_resource_info)
Features related to the Ollama model
Run the model (
mcp_ollama_run)Check model information (
mcp_ollama_show)Download model (
mcp_ollama_pull)Get model list (
mcp_ollama_list)Delete model (
mcp_ollama_rm)Chat completion (
mcp_ollama_chat_completion)Check container status (
mcp_ollama_status)
OpenAI related features
Chat completed (
mcp_openai_chat)Create image (
mcp_openai_image)Text-to-speech (
mcp_openai_tts)Speech-to-text (
mcp_openai_transcribe)Generate embedding (
mcp_openai_embedding)
Google Gemini related features
Generate text (
mcp_gemini_generate_text)Chat completion (
mcp_gemini_chat_completion)Get model list (
mcp_gemini_list_models)~~Generate images (
mcp_gemini_generate_images) - Using Imagen model~~ (currently disabled)~~Generate videos (
mcp_gemini_generate_videos) - Using Veo models~~ (currently disabled)~~Generate multimodal content (
mcp_gemini_generate_multimodal_content)~~ (currently disabled)
Note : Gemini's image creation, video creation, and multimodal content creation features are currently disabled due to API compatibility issues.
Supported Gemini Models
Model transformation | input | output of power | Optimization Goal |
Gemini 2.5 Flash Preview | Audio, images, video, text | Text | Adaptive thinking, cost-effectiveness |
Gemini 2.5 Pro Preview | Audio, images, video, text | Text | Enhanced thinking and reasoning, multimodal understanding, advanced coding |
Gemini 2.0 Flash | Audio, images, video, text | Text, images (experimental), audio (coming soon) | Next-generation capabilities, speed, thinking, real-time streaming, multimodal creation |
Gemini 2.0 Flash-Lite | Audio, images, video, text | Text | Cost-effective and low latency |
Gemini 1.5 Flash | Audio, images, video, text | Text | Fast and versatile performance for a variety of tasks |
Gemini 1.5 Flash-8B | Audio, images, video, text | Text | High volume and low intelligence tasks |
Gemini 1.5 Pro | Audio, images, video, text | Text | Complex reasoning tasks that require more intelligence |
Gemini embedding | Text | Text embedding | Measuring the relevance of text strings |
Imagen 3 | Text | image | Google's most advanced image generation model |
Veo 2 | Text, Images | video | Create high-quality videos |
Gemini 2.0 Flash Live | Audio, video, text | Text, Audio | Low-latency, two-way voice and video interaction |
HTTP request functions
Execute HTTP requests (
mcp_http_request) - communicate with external APIs using various HTTP methods such as GET, POST, PUT, DELETE, etc.
Related MCP server: RDF Explorer
Get started
1. Clone the repository
git clone https://github.com/bigdata-coss/agent_mcp.git
cd agent_mcp2. Run the GraphDB Docker container
Start the GraphDB server by running the following command from the project root directory:
docker-compose up -dThe GraphDB web interface runs at http://localhost:7200 .
3. Build and run the MCP server
# 의존성 설치
npm install
# 프로젝트 빌드
npm run build
# 서버 실행 (테스트용, Claude Desktop에서는 필요 없음)
node build/index.js4. Import RDF data
Go to the GraphDB web interface ( http://localhost:7200 ) and do the following:
Create a repository:
“Setup” → “Repositories” → “Create new repository”
Repository ID:
schemaorg-current-https(or whatever name you want)Repository title: "Schema.org"
Click "Create"
Get sample data:
Select the repository you created
“Import” → “RDF” → “Upload RDF files”
Upload an example file to the
importsdirectory (e.g.imports/example.ttl)Click "Import"
Note : The project includes example RDF files in the
importsdirectory.
5. Setting up Claude Desktop
To use Ontology MCP in Claude Desktop, you need to update the MCP settings file:
Open the Claude Desktop settings file:
Windows:
%AppData%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the following settings:
{
"mcpServers": {
"a2a-ontology-mcp": {
"command": "node",
"args": ["E:\\codes\\a2a_mcp\\build"],
"env": {
"SPARQL_ENDPOINT": "http://localhost:7200",
"OPENAI_API_KEY": "your-api-key",
"GEMINI_API_KEY" : "your-api-key"
},
"disabled": false,
"autoApprove": []
}
}
}IMPORTANT : Change the path in `args' to the actual absolute path to your project build directory.
Restart Claude Desktop
License
This project is provided under the MIT License. See the LICENSE file for details.
Available Tools
28 toolsmcp_gemini_chat_completionC
Gemini AI 모델을 사용하여 채팅 대화를 완성합니다.
Inputs: messages (required), model (required), max_tokens, temperature, +2 more.
mcp_gemini_create_imageA
Gemini 모델을 사용하여 텍스트 프롬프트에서 이미지를 생성합니다. 텍스트와 이미지를 함께 반환합니다. 주요 특징: 1) 생성된 모든 이미지에는 SynthID 워터마크 포함 2) 대화식 이미지 수정 가능 3) 텍스트와 이미지가 혼합된 출력 생성 가능. 최상의 성능을 위해 EN, es-MX, ja-JP, zh-CN, hi-IN 언어를 사용하세요. 이미지 생성이 항상 트리거되지 않을 수 있으므로 "이미지 생성", "이미지 제공" 등의 표현을 명시적으로 요청하세요.
Inputs: prompt (required), fileName, model, saveDir.
mcp_gemini_edit_imageA
Gemini 모델을 사용하여 기존 이미지를 편집합니다. 텍스트 프롬프트와 Base64로 인코딩된 이미지 데이터가 필요합니다. 제한사항: 1) 오디오/동영상 입력 미지원 2) 이미지 생성이 항상 트리거되지 않음(명시적으로 "이미지 업데이트", "이미지 편집" 등 요청 필요) 3) 모델이 가끔 생성을 중단할 수 있음. 이미지에 텍스트를 생성할 때는 먼저 텍스트를 생성한 다음 텍스트가 포함된 이미지를 요청하는 것이 효과적입니다. 멀티턴 이미지 편집(채팅)이 가능하며, 컨텍스트를 유지하면서 이미지를 수정할 수 있습니다.
Inputs: imageData (required), prompt (required), fileName, imageMimeType, +2 more.
mcp_gemini_generate_imageB
Google Gemini 또는 Imagen 모델을 사용하여 이미지를 생성합니다. 모델 이름에 따라 적절한 API가 자동으로 선택됩니다. 생성된 이미지 파일 경로를 반환하며, 이 경로는 반드시 사용자에게 알려주어야 합니다.
Inputs: prompt (required), aspectRatio, fileName, imageData, +7 more.
mcp_gemini_generate_imagesB
Google Imagen 모델을 사용하여 이미지를 생성합니다. 곧 mcp_gemini_generate_image 도구로 대체될 예정입니다.
Inputs: prompt (required), fileName, model, numberOfImages, +2 more.
mcp_gemini_generate_multimodal_contentC
Gemini 모델을 사용하여 텍스트와 이미지를 포함한 멀티모달 콘텐츠를 생성합니다. 생성된 텍스트와 이미지 파일 경로를 반환하며, 이 정보는 반드시 사용자에게 알려주어야 합니다.
Inputs: contents (required), fileName, max_tokens, model, +3 more.
mcp_gemini_generate_textC
Gemini AI 모델을 사용하여 텍스트를 생성합니다.
Inputs: model (required), prompt (required), max_tokens, temperature, +2 more.
mcp_gemini_generate_videosC
Google Veo 모델을 사용하여 비디오를 생성합니다. 생성된 비디오 파일 경로를 반환하며, 이 경로는 반드시 사용자에게 알려주어야 합니다.
Inputs: prompt (required), aspectRatio, durationSeconds, fileName, +5 more.
mcp_gemini_list_modelsB
사용 가능한 Gemini 모델 목록을 조회합니다.
Inputs: no named parameters.
mcp_http_requestB
HTTP 요청을 보내고 응답을 반환합니다. GET, POST, PUT, DELETE 등 다양한 HTTP 메소드를 사용할 수 있으며, 헤더와 데이터를 설정할 수 있습니다.
Inputs: url (required), data, headers, method, +2 more.
mcp_imagen_generateA
Google Imagen 3 모델을 사용하여 텍스트 프롬프트에서 고품질 이미지를 생성합니다. Imagen 3은 포토리얼리즘, 예술적 디테일, 특정 예술 스타일(인상주의, 애니메이션 등)에 탁월합니다. 생성된 이미지에는 항상 SynthID 워터마크가 포함됩니다. 현재 영어 프롬프트만 지원됩니다.
Inputs: prompt (required), aspectRatio, fileName, model, +3 more.
mcp_ollama_chat_completionC
OpenAI 호환 채팅 완성 API를 사용하여 응답을 생성합니다
Inputs: messages (required), model (required), temperature, timeout.
mcp_ollama_listB
사용 가능한 Ollama 모델 목록을 조회합니다
Inputs: no named parameters.
mcp_ollama_pullC
Ollama 레지스트리에서 모델을 다운로드합니다
Inputs: name (required).
mcp_ollama_rmC
Ollama 모델을 삭제합니다
Inputs: name (required).
mcp_ollama_runC
Ollama 모델을 실행하여 응답을 생성합니다
Inputs: name (required), prompt (required), timeout.
mcp_ollama_showC
Ollama 모델의 정보를 표시합니다
Inputs: name (required).
mcp_ollama_statusC
Ollama 서버 상태 확인
Inputs: random_string (required).
mcp_openai_chatC
OpenAI ChatGPT API를 사용하여 텍스트 완성을 생성합니다
Inputs: messages (required), model (required), max_tokens, temperature.
mcp_openai_embeddingC
OpenAI Embeddings API를 사용하여 텍스트 임베딩을 생성합니다
Inputs: text (required), dimensions, model.
mcp_openai_imageC
OpenAI DALL-E API를 사용하여 이미지를 생성합니다. 생성된 이미지 파일 경로를 반환하며, 이 경로는 반드시 사용자에게 알려주어야 합니다.
Inputs: prompt (required), fileName, model, n, +4 more.
mcp_openai_transcribeC
OpenAI Whisper API를 사용하여 음성을 텍스트로 변환합니다. 변환된 텍스트를 반환합니다.
Inputs: audioPath (required), language, model, prompt.
mcp_openai_ttsA
OpenAI TTS API를 사용하여 텍스트를 음성으로 변환합니다. 생성된 오디오 파일 경로를 반환하며, 이 경로는 반드시 사용자에게 알려주어야 합니다.
Inputs: text (required), fileName, model, saveDir, +2 more.
mcp_sparql_execute_queryC
SPARQL 쿼리를 실행하고 결과를 반환합니다
Inputs: query (required), endpoint, explain, format, +1 more.
mcp_sparql_get_resource_infoB
지정된 URI에 대한 모든 속성과 값을 조회합니다
Inputs: uri (required), endpoint, repository.
mcp_sparql_list_graphsC
지정된 리포지토리의 모든 명명된 그래프를 나열합니다
Inputs: endpoint, repository.
mcp_sparql_list_repositoriesC
GraphDB 서버의 모든 리포지토리를 나열합니다
Inputs: endpoint.
mcp_sparql_updateA
SPARQL 업데이트 쿼리를 실행하여 데이터를 수정합니다. INSERT DATA, DELETE DATA, INSERT-WHERE, DELETE-WHERE 등의 SPARQL 1.1 Update 문법을 지원합니다. 새로운 트리플 추가, 기존 트리플 삭제, 조건부 데이터 변경 등 다양한 그래프 수정 작업을 수행할 수 있습니다.
Inputs: query (required), endpoint, repository.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
There is significant overlap and confusion among tools, particularly in image generation (mcp_gemini_create_image, mcp_gemini_generate_image, mcp_gemini_generate_images, mcp_imagen_generate, mcp_openai_image) and text generation (mcp_gemini_chat_completion, mcp_gemini_generate_text, mcp_ollama_chat_completion, mcp_openai_chat). An agent would struggle to choose the right tool for tasks like 'generate an image' or 'chat with AI' due to unclear boundaries and redundant functionality across different providers.
Tool names follow a consistent mcp_<provider>_<action>_<target> pattern throughout, with clear prefixes for providers (gemini, ollama, openai, sparql, http) and descriptive actions. Minor deviations exist (e.g., mcp_gemini_generate_images vs. mcp_gemini_generate_image, or mcp_openai_chat vs. mcp_gemini_chat_completion), but the overall structure is predictable and readable.
With 28 tools, the count is excessive for a single server, indicating poor scoping. The server combines multiple domains (AI model interactions, HTTP requests, SPARQL queries) without clear integration, making it feel like a collection of unrelated utilities rather than a cohesive set. This many tools will overwhelm agents and increase misselection risk.
For each sub-domain (e.g., Gemini AI, Ollama, SPARQL), there is reasonable coverage of core operations like generation, listing, and updates. However, gaps exist, such as missing model management for OpenAI (no list or delete tools) and inconsistent support across providers (e.g., video generation only for Gemini). The broad scope makes it hard to assess completeness, but within sub-domains, agents can work around minor omissions.
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for The Chancery Lane Project's climate-aligned contract clause knowledge graph.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides read-only access to Ontotext GraphDB, enabling LLMs to explore RDF graphs and execute SPARQL queries.215 npm17GPL 3.0
- AlicenseNot gradedqualityCmaintenanceThe Model Context Protocol (MCP) server provides a conversational interface for the exploration and analysis of RDF Turtle Knowledge Graph in Local File mode or SPARQL Endpoint.56MIT
- FlicenseNot gradedqualityDmaintenanceA Model-Context-Protocol server that enables AI assistants to create, edit, and manage Web Ontology Language (OWL) ontologies through function calls using OWL functional syntax.21-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with Mobi instances, providing structured data exchange and command execution for ontology management, data retrieval, and content creation.2MIT