ConceptNet MCP Server
Provides MCP tools for querying and analyzing ConceptNet's semantic knowledge graph.
Look up detailed information and relationships for a specific concept.
Run advanced concept queries with filters for start/end concepts, relation type, node, other, sources, and language.
Discover semantically related concepts ranked by similarity.
Calculate semantic relatedness scores between two concepts, including cross-language comparison.
Filter by language, limit results, and use automatic pagination for larger result sets.
Choose minimal (~96% smaller, LLM-optimized) or verbose (full metadata) output formats.
Access via stdio or HTTP transport, including Cloudflare Workers deployment.
Provides access to ConceptNet's semantic knowledge graph, enabling AI agents to look up concepts, search for related terms, analyze semantic relationships, and calculate concept similarity scores across multiple languages.
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., "@ConceptNet MCP Server what concepts are related to 'artificial intelligence'?"
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.
ConceptNet MCP Server
A Model Context Protocol (MCP) server that provides seamless access to the ConceptNet knowledge graph through FastMCP framework.
Overview
ConceptNet MCP provides AI assistants and applications with structured access to ConceptNet's semantic knowledge through four powerful MCP tools:
Concept Lookup: Get detailed information about specific concepts
Concept Query: Search and filter concepts with advanced criteria
Related Concepts: Find concepts connected through semantic relationships
Concept Relatedness: Calculate semantic similarity between concepts
Related MCP server: Vec Memory MCP Server
Features
π FastMCP Integration: Built on the modern FastMCP framework for optimal performance
π Comprehensive Search: Advanced querying with language filtering and pagination
π Multi-language Support: Access ConceptNet's multilingual knowledge base
π Semantic Analysis: Calculate relatedness scores between concepts
π Async Operations: Full async/await support for non-blocking operations
π Type Safety: Complete Pydantic v2 type validation and IDE support
π§ͺ Production Ready: Error handling, logging, and testing
β‘ Optimized Output Formats: Choose between minimal (~96% smaller) or comprehensive responses
Output Formats
ConceptNet MCP Server supports two output formats for all tools to optimize performance and reduce token usage:
Minimal Format (Default - Recommended)
Size: ~96% smaller than verbose format
Optimized: Designed specifically for LLM consumption
Content: Essential data only - concepts, relationships, similarity scores
Performance: Faster processing and reduced API costs
Usage: Perfect for most AI applications and chat interfaces
Verbose Format
Size: Full ConceptNet response data
Content: Complete metadata, statistics, analysis, and original API responses
Usage: Detailed analysis, debugging, or when full context is needed
Backward Compatibility: Maintains compatibility with existing integrations
Setting the Format
All tools accept a verbose parameter:
{
"name": "concept_lookup",
"arguments": {
"term": "artificial intelligence",
"verbose": false // Default: minimal format
}
}{
"name": "related_concepts",
"arguments": {
"term": "machine learning",
"verbose": true // Full detailed format
}
}Examples of size difference:
Minimal:
{"concept": "dog", "relationships": {"IsA": ["animal", "mammal"]}}Verbose: Full ConceptNet response with complete metadata, statistics, timestamps, etc.
Quick Start
Installation
# Clone the repository
git clone https://github.com/infinitnet/conceptnet-mcp.git
cd conceptnet-mcp
# Install in development mode
pip install -e .Running the MCP Server
The server supports both stdio (for desktop MCP clients) and HTTP (for web clients) transport modes:
Stdio Transport (Default - for desktop MCP clients)
# Start with stdio transport (default)
conceptnet-mcp
# Or explicitly specify stdio
conceptnet-mcp-stdio
# Or use Python module
python -m conceptnet_mcp.serverHTTP Transport (for web clients)
# Start HTTP server on localhost:3001
conceptnet-mcp-http
# Or with custom host/port
python -c "from conceptnet_mcp.server import run_http_server; run_http_server('0.0.0.0', 8080)"Development Modes
# Development mode with debug logging
conceptnet-mcp-dev
# Production mode with optimized logging
conceptnet-mcp-prodMCP Client Integration
For Desktop MCP Clients (stdio transport)
Add to your MCP client configuration:
{
"mcpServers": {
"conceptnet": {
"command": "python",
"args": ["-m", "conceptnet_mcp.server"]
}
}
}For Web Applications (HTTP transport)
Add to your MCP client configuration:
{
"mcpServers": {
"conceptnet": {
"command": "python",
"args": ["-m", "conceptnet_mcp.server", "--transport", "http", "--port", "3001"]
}
}
}Or start the HTTP server manually and connect to:
http://localhost:3001// Example web client connection
const client = new MCPClient('http://localhost:3001');
await client.connect();βοΈ Cloudflare Workers Deployment
Deploy ConceptNet MCP Server to Cloudflare's global edge network for worldwide access and automatic scaling using a FastAPI-based implementation optimized for Python Workers.
Architecture
The Cloudflare Workers deployment uses a completely different architecture from the standard FastMCP server:
FastAPI Framework: Manual MCP protocol implementation using FastAPI for HTTP routing
Standard Workers Pattern: Uses
fetch(request, env, ctx)handler (no Durable Objects)Native HTTP Client: Custom
CloudflareHTTPClientusing Workers' nativefetch()APIManual MCP Protocol: JSON-RPC 2.0 MCP messages handled directly without FastMCP framework
Benefits
π Global Edge Network: Low-latency access worldwide via Cloudflare's CDN
π Auto-scaling: Serverless scaling based on demand with zero cold starts
π Dual Transport Support: Both SSE and Streamable HTTP endpoints for maximum compatibility
π€ Remote MCP Access: Enable AI agents to access ConceptNet from anywhere
π° Cost-effective: Pay only for actual usage with generous free tier
Quick Deploy
# Clone and navigate to Workers directory
git clone https://github.com/infinitnet/conceptnet-mcp.git
cd conceptnet-mcp/cloudflare-workers
# Install Wrangler CLI
npm install -g wrangler
# Authenticate and deploy
wrangler login
wrangler deployUsage After Deployment
Your ConceptNet MCP Server will be available at:
# Streamable HTTP Transport (recommended for MCP clients)
https://your-worker.your-domain.workers.dev/mcp
# SSE Transport (legacy support)
https://your-worker.your-domain.workers.dev/sse
# Tools listing endpoint
https://your-worker.your-domain.workers.dev/toolsExample remote client connection (direct HTTP):
import httpx
import json
# Connect to your deployed Workers instance
async with httpx.AsyncClient() as client:
response = await client.post(
"https://your-worker.your-domain.workers.dev/mcp",
json={
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "concept_lookup",
"arguments": {"term": "artificial intelligence"}
}
}
)
result = response.json()
print(result["result"])For detailed deployment instructions, configuration options, and troubleshooting, see the Cloudflare Workers Documentation.
Available Tools
1. Concept Lookup
Get detailed information about a specific concept. Returns all relationships and properties.
{
"name": "concept_lookup",
"arguments": {
"term": "artificial intelligence",
"language": "en",
"limit_results": false,
"target_language": null,
"verbose": false
}
}Parameters:
term(required): The concept to look uplanguage(default: "en"): Language code for the conceptlimit_results(default: false): Limit to first 20 results for quick queriestarget_language(optional): Filter results to specific target languageverbose(default: false): Return detailed format vs minimal format
2. Concept Query
Advanced querying with sophisticated multi-parameter filtering.
{
"name": "concept_query",
"arguments": {
"start": "car",
"rel": "IsA",
"language": "en",
"limit_results": false,
"verbose": false
}
}Parameters:
start(optional): Start concept of relationshipsend(optional): End concept of relationshipsrel(optional): Relation type (e.g., "IsA", "PartOf")node(optional): Concept that must be start or end of edgesother(optional): Used with 'node' parametersources(optional): Filter by data sourcelanguage(default: "en"): Language filterlimit_results(default: false): Limit to 20 results for quick queriesverbose(default: false): Return detailed format vs minimal format
3. Related Concepts
Find concepts semantically similar to a given concept using ConceptNet's embeddings.
{
"name": "related_concepts",
"arguments": {
"term": "machine learning",
"language": "en",
"filter_language": null,
"limit": 100,
"verbose": false
}
}Parameters:
term(required): The concept to find related concepts forlanguage(default: "en"): Language code for input termfilter_language(optional): Filter results to this language onlylimit(default: 100, max: 100): Maximum number of related conceptsverbose(default: false): Return detailed format vs minimal format
4. Concept Relatedness
Calculate precise semantic relatedness score between two concepts.
{
"name": "concept_relatedness",
"arguments": {
"concept1": "artificial intelligence",
"concept2": "machine learning",
"language1": "en",
"language2": "en",
"verbose": false
}
}Parameters:
concept1(required): First concept for comparisonconcept2(required): Second concept for comparisonlanguage1(default: "en"): Language for first conceptlanguage2(default: "en"): Language for second conceptverbose(default: false): Return detailed format vs minimal format
Configuration
The server can be configured through environment variables:
# ConceptNet API settings
CONCEPTNET_API_BASE_URL=https://api.conceptnet.io
CONCEPTNET_API_VERSION=5.7
# Server settings
MCP_SERVER_HOST=localhost
MCP_SERVER_PORT=3000
LOG_LEVEL=INFO
# Rate limiting
CONCEPTNET_RATE_LIMIT=100
CONCEPTNET_RATE_PERIOD=60Development
Setup
# Clone the repository
git clone https://github.com/infinitnet/conceptnet-mcp.git
cd conceptnet-mcp
# Install in development mode
pip install -e .[dev]
# Install pre-commit hooks
pre-commit installAPI Reference
Core Models
Concept: Represents a ConceptNet concept with URI, label, and language
Edge: Represents relationships between concepts with relation types
Query: Structured query parameters for concept searches
Response: Standardized response format with pagination support
Client Components
ConceptNetClient: Async HTTP client for ConceptNet API
PaginationHandler: Automatic pagination for large result sets
ResponseProcessor: Data processing and normalization
Utilities
Text Processing: Normalize text (underscores to spaces)
Logging: Structured logging with configurable levels
Error Handling: Comprehensive exception hierarchy
Architecture
conceptnet_mcp/
βββ client/ # ConceptNet API client
β βββ conceptnet_client.py
β βββ pagination.py
β βββ processor.py
βββ models/ # Pydantic data models
β βββ concept.py
β βββ edge.py
β βββ query.py
β βββ response.py
βββ tools/ # MCP tool implementations
β βββ concept_lookup.py
β βββ concept_query.py
β βββ related_concepts.py
β βββ concept_relatedness.py
βββ utils/ # Utility modules
β βββ exceptions.py
β βββ logging.py
β βββ text_utils.py
βββ server.py # FastMCP server entry pointContributing
Fork the repository: https://github.com/infinitnet/conceptnet-mcp
Create a feature branch:
git checkout -b feature-nameMake your changes and add tests
Run the test suite:
pytestSubmit a pull request
Guidelines
Follow PEP 8 style guidelines
Add type hints for all functions
Include docstrings for public APIs
Write tests for new functionality
Update documentation as needed
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Acknowledgments
ConceptNet for providing the semantic knowledge base
FastMCP for the MCP framework
Model Context Protocol specification
Support
π Documentation: Read the docs
π Bug Reports: GitHub Issues
π¬ Discussions: GitHub Discussions
π Author's Website: https://infinitnet.io/
Built with β€οΈ for the AI and semantic web community.
Available Tools
4 toolsconcept_lookupConcept LookupA
Look up information about a specific concept in ConceptNet.
This tool queries ConceptNet's knowledge graph to find all relationships
and properties associated with a given concept. By default, it returns
ALL results (not limited to 20) to provide complete information.
Features:
- Complete relationship discovery for any concept
- Language filtering and cross-language exploration
- Summaries and statistics
- Performance optimized with automatic pagination
- Format control: minimal (~96% smaller) vs verbose (full metadata)
Format Options:
- verbose=false (default): Returns minimal format optimized for LLM consumption
- verbose=true: Returns comprehensive format with full ConceptNet metadata
- Backward compatibility maintained with existing tools
Use this when you need to:
- Understand what ConceptNet knows about a concept
- Explore all relationships for a term
- Get semantic information
- Find related concepts and properties
Inputs: term (required), verbose, language, limit_results, +1 more. Returns: object
concept_queryConcept QueryA
Advanced querying of ConceptNet with sophisticated multi-parameter filtering.
This tool provides powerful filtering capabilities for exploring ConceptNet's
knowledge graph. You can combine multiple filters to find specific types of
relationships and concepts with precision.
Features:
- Multi-parameter filtering (start, end, relation, node, sources)
- Complex relationship discovery and analysis
- Comprehensive result processing and enhancement
- Query optimization and performance metrics
- Format control: minimal (~96% smaller) vs verbose (full metadata)
Format Options:
- verbose=false (default): Returns minimal format optimized for LLM consumption
- verbose=true: Returns comprehensive format with full ConceptNet metadata
- Backward compatibility maintained with existing tools
Filter Parameters:
- start: Start concept of relationships (e.g., "dog", "/c/en/dog")
- end: End concept of relationships (e.g., "animal", "/c/en/animal")
- rel: Relation type (e.g., "IsA", "/r/IsA")
- node: Concept that must be either start or end of edges
- other: Used with 'node' to find relationships between two specific concepts
- sources: Filter by data source (e.g., "wordnet", "/s/activity/omcs")
Use this when you need:
- Precise relationship filtering and discovery
- Complex queries with multiple constraints
- Analysis of specific relationship types
- Targeted exploration of concept connections
Inputs: end, rel, node, other, +5 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 4 tools
concept_lookup and concept_query overlap somewhat (lookup is essentially a node-scoped query), but the descriptions clearly differentiate single-concept exploration from multi-parameter filtering. related_concepts (ranked neighbor list for one term) vs concept_relatedness (single pairwise score) is a clear distinction once you read the descriptions. Boundaries are mostly clear, with one pair that could be confused at a glance.
Three tools follow a 'concept_<action>' noun-prefix pattern (concept_query, concept_lookup, concept_relatedness) while related_concepts inverts the order, a minor deviation. All names are lowercase snake_case and readable, so the set is predictable overall despite the one outlier.
Four tools is on the lean side but each maps to a distinct ConceptNet capability (filtered edge query, concept dump, similarity neighbors, pairwise relatedness). Nothing is redundant enough to be cut, though a slightly richer surface would not feel bloated.
The core ConceptNet workflowsβrelationship lookup, filtered edge search, semantic neighbors, and pairwise similarityβare all covered, with cross-language and verbose/minimal format controls. Minor gaps exist (no schema/relation-type or source discovery, no explicit assertion/edge-detail retrieval), but agents can work around these via concept_query filters.
Maintenance
Related MCP Connectors
ConceptNet MCP β open multilingual word/phrase relation graph
Knowledge graph for AI agents. Query concepts, walk edges, get advisories.
Persistent knowledge graph for AI agents. Remember, recall, and forget facts.
AI-assisted English lexical records. Stored-only batch lookup; coverage and quality vary.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides tools for semantic decomposition, proof search, knowledge graph operations, and neuro-symbolic reasoning that bridges neural LLMs with symbolic AI through RDF triples, lambda calculus, and compositional intelligence principles.-
- AlicenseNot gradedqualityNot gradedmaintenanceProvides graph-based semantic memory storage and retrieval using vector embeddings and SQLite, enabling relationship creation between memories and similarity-based search through natural language.27 npm-
- AlicenseAqualityBmaintenanceAn MCP server for multilingual dictionary lookups with word relations such as synonyms, antonyms, and definitions, leveraging ConceptNet, Wiktionary, and Datamuse APIs.287MIT
- AlicenseCqualityDmaintenanceEnables querying the LitCoin knowledge graph for nodes, edges, and relationships, with support for semantic similarity search over nodes and edges via MCP.5MIT