Skip to main content
Glama

Knowledge MCP Server

by sven-borkert

get_project_main

Retrieve project-specific guidelines and configurations from a centralized repository. Use to ensure consistent adherence to project instructions, replace outdated local files, and parse structured content for clarity.

Instructions

Retrieve main.md content for a project's central instructions and configuration.

When to use this tool:

  • Starting work on any project (ALWAYS use FIRST)
  • Refreshing your understanding of project guidelines
  • Checking for updates to project instructions
  • Migrating from local CLAUDE.md files to centralized storage

Key features:

  • Replaces need for local CLAUDE.md files completely
  • Auto-detects project from git repository or directory name
  • Returns structured content with sections for easy parsing
  • Provides project-specific instructions and context

You should:

  1. ALWAYS call this first when starting work on a project
  2. Use the returned content as your primary behavioral guide
  3. Check if project exists before assuming it doesn't
  4. Migrate local CLAUDE.md files immediately if project not found
  5. Parse sections to understand project structure and requirements
  6. Treat this as your source of truth over any local files
  7. Remember project_id for subsequent operations

DO NOT use when:

  • You already have the project content loaded in current session
  • Working with temporary or test projects

Returns: {exists: bool, content: str, error?: str}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project identifier

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "project_id": { "description": "The project identifier", "maxLength": 100, "minLength": 1, "type": "string" } }, "required": [ "project_id" ], "type": "object" }

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/sven-borkert/knowledge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server