LinguaMCP
Serves daily language lessons from a structured curriculum, enabling natural practice through conversation with AI tutors that track progress.
README
LinguaMCP
Open curriculum protocol for AI language tutors β learn naturally through daily practice with any AI tool.
What is it?
LinguaMCP is an MCP (Model Context Protocol) server that serves daily language lessons from a structured curriculum. It works with Claude, Cursor, Windsurf, or any AI tool that supports MCP.
Instead of flashcards or grammar drills, you practice naturally through conversation. Your AI tutor knows what you've learned, tracks your progress, and introduces new material when you're ready.
Quick Start
Option 1: Zero-config SQLite (recommended)
# Install globally
npm install -g @lingua/mcp
# Initialize database with curriculum
lingua-mcp-init
# Start the server
lingua-mcp
That's it. No database to set up, no API keys, no cloud services. Your progress lives in ~/.lingua-mcp/lingua.db.
Option 2: Supabase (cloud or self-hosted)
# Clone and install
git clone https://github.com/Marsmanleo/LinguaMCP.git
cd LinguaMCP
npm install
# Set up environment
cp .env.example .env
# Edit .env with your Supabase credentials
# Run the Supabase migration (in supabase/migrations/)
# Then ingest the curriculum
npm run ingest
# Start the server
npm start
Configure Your AI Tool
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"lingua": {
"command": "npx",
"args": ["-y", "@lingua/mcp"]
}
}
}
Cursor / Windsurf
Add to your MCP settings:
{
"lingua": {
"command": "node",
"args": ["/path/to/LinguaMCP/server.mjs"]
}
}
Supabase mode
Set environment variables before starting:
SUPABASE_BASE_URL=https://your-project.supabase.co \
SUPABASE_ANON_KEY=your-anon-key \
node server.mjs
MCP Tools
Once connected, your AI tool gets three new tools:
| Tool | Description |
|---|---|
get_today_lesson |
Returns your next unmastered lesson with context and practice prompts |
get_user_progress |
Shows mastery, practiced, and remaining counts |
log_response |
Records your practice response (score 1-5, β₯4 = mastered) |
Curriculum
Currently using structured content from English-level-up-tips (50k+ stars, MIT License).
Available skill books:
- π Linking Words β 4 chapters, 20 lessons covering contrast, addition, cause-effect, and condition connectors
More skill books and languages coming soon.
How It Works
βββββββββββββββ MCP βββββββββββββββ Query ββββββββββββ
β Your AI ββββββββββββββββΆβ LinguaMCP ββββββββββββββββΆβ Database β
β Tool βββββββββββββββββ Server βββββββββββββββββ β
βββββββββββββββ Lessons & βββββββββββββββ Progress & ββββββββββββ
Progress Lessons
- You chat with your AI tool normally
- The AI calls LinguaMCP to get your lesson for the day
- You practice through conversation
- LinguaMCP tracks what you've mastered and what's next
Architecture
server.mjs β MCP server entry point
storage/
interface.mjs β Storage contract
supabase.mjs β Supabase/PostgREST adapter
sqlite.mjs β SQLite adapter (zero-config)
schema/
sqlite.sql β SQLite schema
scripts/
ingest-english-tips.ts β Content ingestion (Supabase)
init-sqlite.mjs β Content ingestion (SQLite)
src/
index.ts β TypeScript types
Storage Modes
| Mode | When | Database | Best for |
|---|---|---|---|
| SQLite | No SUPABASE_BASE_URL set |
~/.lingua-mcp/lingua.db |
Personal use, self-hosted |
| Supabase | SUPABASE_BASE_URL is set |
PostgreSQL via PostgREST | Cloud, multi-user, teams |
Same tools, same responses, same curriculum. The server auto-detects which mode to use.
Contributing
See CONTRIBUTING.md for how to add curriculum content, storage adapters, or language support.
License
Apache License 2.0 β see LICENSE.
Curriculum content from English-level-up-tips is MIT licensed.
Related
- MarsNMe β AI memory companion (sister project)
- Model Context Protocol β The protocol that makes this work
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.