Company KB MCP
Provides read-only integration with GitLab repositories, allowing AI assistants to sync, index, search, and retrieve cited answers from Markdown and MDX documentation stored in GitLab projects.
Click on "Install 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., "@Company KB MCPSearch the company KB for the deployment runbook for the billing service."
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.
Company KB MCP
Company KB MCP is a local-first Model Context Protocol server that lets AI coding assistants search company Markdown knowledge stored in GitLab repositories.
It is designed for GitHub Copilot and Claude Code. The server clones selected GitLab repositories into a local cache, indexes Markdown and MDX files into a local SQLite database, and exposes MCP tools for search, cited answers, document opening, repository sync, and repository removal.
The server is read-only. It does not write to GitLab, push commits, create branches, or update source files.
What It Does
Adds GitLab repositories by URL.
Clones or refreshes shallow local repository mirrors.
Indexes Markdown, MDX, README, docs, ADR, runbook, and playbook content.
Stores repository, document, chunk, and keyword-search data in SQLite.
Optionally stores local vector embeddings with
sqlite-vecand FastEmbed.Returns snippets with GitLab source metadata and canonical source URLs.
Redacts secret-looking values from logs and tool responses.
Related MCP server: Qurio MCP Server
How It Works
A user installs the MCP from the private marketplace.
GitHub Copilot or Claude Code starts the MCP server over stdio.
The user asks the assistant to add a GitLab repository.
The MCP server resolves the GitLab project, clones it locally, and indexes Markdown files.
Later questions use local keyword search, optional semantic search, or both.
The assistant receives cited evidence and uses it to answer the user.
The local index stays on the user's machine. Private repositories require the user to provide a GitLab token through an environment variable.
Install From Private Marketplace
The exact marketplace URL and package registry details are placeholders for now.
GitHub Copilot
Open the private plugin marketplace.
Search for
Company KB.Install the GitHub Copilot target.
If prompted, provide a GitLab token secret named
GITLAB_TOKEN.Restart or reload the IDE MCP tools.
Expected MCP configuration shape:
{
"servers": {
"company-kb": {
"type": "stdio",
"command": "uvx",
"args": ["--from", "company-kb-mcp==0.1.0", "company-kb-mcp", "serve"]
}
}
}Claude Code
Open the private plugin marketplace.
Search for
Company KB.Install the Claude Code target, or run the marketplace-generated install command.
Set
GITLAB_TOKENin your shell if you need private repository access.Start or reload Claude Code and run
/mcpto confirm the server is connected.
Expected Claude Code command shape:
claude mcp add-json --scope user company-kb \
'{"type":"stdio","command":"uvx","args":["--from","company-kb-mcp==0.1.0","company-kb-mcp","serve"],"env":{"GITLAB_TOKEN":"${GITLAB_TOKEN:-}"}}'Basic Usage
After installation, ask your assistant to add a repository:
Use company-kb to sync https://gitlab.com/gitlab-org/cliThen ask questions that need company documentation:
Search company-kb for the deployment runbook for the billing service.Use company-kb to answer with citations: how do we rotate production credentials?Useful actions:
Add a repository: call
company_kb_sync_repositorywith a GitLab URL.Refresh known repositories: call
company_kb_sync.List indexed repositories: call
company_kb_list_repositories.Search documentation: call
company_kb_search.Open exact source context: call
company_kb_open_doc.Build a cited evidence pack: call
company_kb_answer.Remove a repository from the local index: call
company_kb_remove_repository.
Configuration
Configuration is optional for ad hoc usage. Without a config file, repositories can still be added by URL.
Common environment variables:
GITLAB_TOKEN: optional token for private GitLab repositories.COMPANY_KB_CONFIG: optional path to a YAML config file.COMPANY_KB_CACHE_DIR: optional local repository cache directory.COMPANY_KB_DATA_DIR: optional local SQLite index directory.COMPANY_KB_LOG_FILE: optional JSONL log file path.COMPANY_KB_AUTO_SYNC_ON_STARTUP: set to1to refresh indexed repositories when the server starts.
For private GitLab repositories, the token needs:
read_apiread_repository
Do not put token values in marketplace metadata, MCP config files, plugin manifests, or checked-in YAML files.
Local Development
Requirements:
Python 3.11 or newer.
uv.Git 2.30 or newer.
Install dependencies:
uv sync --devStart the MCP server:
uv run company-kb-mcp serveRun tests:
uv run pytestRun a local sync from the CLI:
uv run company-kb-mcp sync-url --url https://gitlab.com/gitlab-org/cliCheck status:
uv run company-kb-mcp statusArchitecture
See ARCHITECTURE.md for the component map and sequence diagrams.
Current Limits
Group discovery is scaffolded, but explicit repository URL sync is the main path.
Production keychain and OAuth auth modes are not implemented in the Python MVP.
company_kb_open_docreads the current local cache; it does not check out historical commits.Semantic search is optional and may download local FastEmbed model files on first use.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
FlicenseNot gradedqualityAmaintenanceEnables AI coding assistants to query a local knowledge base for persistent, searchable project context, reducing re-explanation and token usage.8- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to search and retrieve information from a locally ingested knowledge base using hybrid search, grounded in user-curated documentation.17MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to perform intelligent semantic code search across codebases using local AI embeddings for meaning-based retrieval.639MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to search, read, and retrieve context from local knowledge bases with full-text search, absolute paths, and section-level details.
Related MCP Connectors
Governed, auditable knowledge your team curates for its AI assistants, self-hostable
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Your company's brain for AI agents. Cited, permission-aware knowledge across every system.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yunusb/mcp-knowledge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server