learnings-mcp

learnings-mcp

An MCP server for managing learning prompts, supporting both global and local learnings with automatic git commits for shared use.

Category
Visit Server

README

learnings-mcp

A Model Context Protocol (MCP) server for managing learning prompts.

What is MCP?

The Model Context Protocol is an open protocol that standardizes how applications provide context to LLMs. It enables AI applications like Claude to seamlessly integrate with external data sources and tools.

Installation

This MCP server is not published to npm. Install it directly from GitHub using Bun:

bun install github:nitsanavni/learnings-mcp

Or clone the repository:

git clone https://github.com/nitsanavni/learnings-mcp.git
cd learnings-mcp
bun install

Configuration

Claude Code CLI (User Scope)

If you're using the Claude Code CLI, you can add this MCP server globally for all your projects:

claude mcp add -s user learnings bunx -- github:nitsanavni/learnings-mcp --repository https://github.com/yourusername/your-learnings-repo.git --clone-location ~/.learnings/learnings

This adds the server to your user-level MCP configuration, making it available across all Claude Code sessions.

Claude Desktop

Add this server to your Claude Desktop configuration file:

macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Option 1: Run directly from GitHub (Recommended)

{
  "mcpServers": {
    "learnings": {
      "command": "bunx",
      "args": [
        "--bun",
        "github:nitsanavni/learnings-mcp",
        "--repository",
        "https://github.com/yourusername/your-learnings-repo.git",
        "--clone-location",
        "/path/to/clone/location"
      ]
    }
  }
}

CLI Arguments:

  • --repository <path-or-url>: Repository path or GitHub URL for storing global learnings
  • --clone-location <path>: Where to clone remote repositories (default: ~/.learnings/<repo-name>)
  • --local-learnings-folder <path>: Local learnings folder relative to current directory (default: learnings)

This will automatically fetch and run the latest version from GitHub.

Note: To ensure you're running the latest version, you may need to clear Bun's cache:

bun pm cache rm

Option 2: Run from local clone

{
  "mcpServers": {
    "learnings": {
      "command": "bun",
      "args": [
        "run",
        "/ABSOLUTE/PATH/TO/learnings-mcp/index.ts",
        "--repository",
        "https://github.com/yourusername/your-learnings-repo.git",
        "--clone-location",
        "/path/to/clone/location"
      ]
    }
  }
}

Replace /ABSOLUTE/PATH/TO/learnings-mcp/ with the actual path where you cloned this repository.

Restart Claude Desktop

After updating the configuration, restart Claude Desktop for the changes to take effect.

Usage

Once configured, you can interact with learning prompts through Claude Desktop using the tools provided by this MCP server.

Global vs Local Learnings

The server supports two types of learnings:

  • Global learnings: Stored in the repository specified by --repository. These are automatically committed and pushed to the remote repository (if it's a git repo). This is the recommended default for learnings you want to share across projects.

  • Local learnings: Stored in a folder relative to your current working directory (default: learnings/, configurable via --local-learnings-folder). These are not committed to git automatically - they're just files on your local filesystem. Use these for project-specific or temporary learnings.

When listing or getting learnings, the server will show results from both global and local repositories. When adding a learning, you can specify scope: "global" (default) or scope: "local".

Development

This project uses Bun as its runtime.

To run locally:

bun run index.ts

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured