MCP Server
The Context-Fabric MCP (Model Context Protocol) server enables AI assistants like Claude to query corpora directly. This is functionality unique to Context-Fabric—it has no Text-Fabric equivalent.
What is MCP?
The Model Context Protocol is an open standard for connecting AI assistants to external tools and data sources. Context-Fabric's MCP server exposes corpus operations as tools that AI assistants can invoke.
Why Use the MCP Server?
- Natural language queries: Ask questions in plain English instead of writing code
- Iterative exploration: Refine queries conversationally based on results
- No programming required: Researchers can access corpus data without Python knowledge
- AI-assisted analysis: Let Claude help interpret patterns and suggest follow-up queries
Getting Started
- Install:
pip install context-fabric[mcp] - Configure: Add to your Claude Desktop configuration
- Query: Start asking questions about your corpus
See Server Setup for detailed installation instructions.
Available Tools
The MCP server provides 11 tools organized into three categories:
Discovery Tools
list_corpora- List loaded corporadescribe_corpus- Corpus structure overviewlist_features- Browse available featuresdescribe_feature- Feature details with sample valuesget_text_formats- Text encoding samples
Search Tools
search- Pattern-based search with multiple output modessearch_continue- Paginate through resultssearch_csv- Export results to CSV filesearch_syntax_guide- Query syntax documentation
Data Access Tools
get_passages- Retrieve text by section referenceget_node_features- Batch feature lookup
Tutorials
- Corpus Discovery - Learn the exploration workflow
- Building Queries - Master search syntax
- Analyzing Results - Work with search results
Guides
- Server Setup - Installation and configuration
- Claude Integration - Usage patterns with Claude
- AI Workflows - Best practices for AI-assisted research