locus-mcp
MCP server for Locus, a local semantic dataspace manager powered by Ollama. It exposes all Locus HTTP endpoints as MCP tools to manage dataspaces, ingest documents, and perform semantic search.
README
locus-mcp
MCP server for Locus — a local semantic dataspace manager powered by Ollama.
Exposes all Locus HTTP endpoints as MCP tools so any MCP-compatible client (Claude Desktop, Cursor, etc.) can manage dataspaces, ingest documents, and run semantic search.
Requirements
- Locus running locally or remotely
- Node.js 18+
Installation
npm install -g @miguelaperez/locus-mcp --registry=https://npm.pkg.github.com
Or run directly with npx (package is on GitHub, not the npm registry):
npx github:MiguelAPerez/locus-mcp
Note:
@miguelaperez/locus-mcpis a GitHub Packages package, not published to the public npm registry. Usingnpx @miguelaperez/locus-mcp(withoutgithub:) will fail unless you've configured your npm registry. Usegithub:MiguelAPerez/locus-mcpinstead.
Configuration
| Environment variable | Default | Description |
|---|---|---|
LOCUS_URL |
http://localhost:8000 |
Base URL of the Locus API |
MCP client setup
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"locus": {
"command": "npx",
"args": ["-y", "github:MiguelAPerez/locus-mcp"],
"env": {
"LOCUS_URL": "http://localhost:8000"
}
}
}
}
Cursor / other clients
{
"locus": {
"command": "npx",
"args": ["-y", "github:MiguelAPerez/locus-mcp"],
"env": {
"LOCUS_URL": "http://localhost:8000"
}
}
}
mcpo (HTTP proxy)
{
"mcpServers": {
"locus": {
"command": "npx",
"args": ["-y", "github:MiguelAPerez/locus-mcp"],
"env": {
"LOCUS_URL": "http://locus:8000"
}
}
}
}
Tools
Spaces
| Tool | Description |
|---|---|
list_spaces |
List all dataspaces |
create_space |
Create a new dataspace |
delete_space |
Delete a dataspace and all its documents |
Documents
| Tool | Description |
|---|---|
list_documents |
List all documents in a dataspace |
ingest_document |
Ingest text into a dataspace |
get_document |
Retrieve full text of a document by ID |
delete_document |
Delete a document by ID |
Search
| Tool | Description |
|---|---|
search |
Semantic search over a dataspace (query, k, full) |
Settings & health
| Tool | Description |
|---|---|
health_check |
Check if Locus is reachable |
get_settings |
Get current Ollama URL and embedding model |
update_settings |
Update Ollama URL and/or embedding model |
Development
npm install
npm run dev # watch mode
npm test # run tests
npm run build # compile to dist/
License
MIT
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.