Akib Dabgar MCP Server
A personal knowledge hub MCP server that enables LLMs to query structured information about Akib Dabgar's skills, experience, projects, and goals using Dynamic Context Retrieval for efficient context usage.
README
Akib Dabgar MCP Server
A production-ready, TypeScript-based Model Context Protocol (MCP) server built for Akib Dabgar. The server acts as a structured personal knowledge hub, allowing LLM clients (such as Claude Desktop, ChatGPT, Claude Code, and Codex) to query details about Akib's skills, experience, projects, education, and career aspirations.
To maximize context-window efficiency and execution speed, the server implements Dynamic Context Retrieval (DCR), selectively parsing and returning only relevant sections of Akib's profile knowledge base instead of dumping the entire profile into the context.
š Features
- Dynamic Context Retrieval (DCR): Implements keyword tokenization and weight-based section scoring to rank and retrieve only the most relevant headings/sections matching the query.
- MCP Tools: Exposes a
query_profiletool that takes natural language queries and returns optimized Markdown snippets. - MCP Resources: Maps all markdown files in the
knowledge/database toknowledge://URIs, enabling client LLMs to read raw content when needed. - MCP Prompts: Exposes an
akib_profile_assistantprompt that pre-loads system prompt instructions, response policies, and optional topic-specific retriever context. - TypeScript ESM Architecture: Clean, modular, typed codebase utilizing modern Node.js and ES Modules.
š Folder Structure
āāā knowledge/
ā āāā dcr/ # DCR architecture specifications
ā ā āāā overview.md
ā ā āāā retrieval-strategy.md
ā ā āāā ranking-rules.md
ā ā āāā query-examples.md
ā ā āāā response-policy.md
ā ā āāā limitations.md
ā āāā about.md # Core bio, location, professional summary
ā āāā skills.md # Technical and soft skills
ā āāā projects.md # Akib's project history (ChainIT Pay, etc.)
ā āāā experience.md # Work experience details (eSparkBiz)
ā āāā education.md # Saurashtra University degree
ā āāā career-goals.md # Professional goals
ā āāā interests.md # Architecture, scalable systems, AI
ā āāā faq.md # Common questions & answers
āāā src/
ā āāā retriever/
ā ā āāā DynamicContextRetriever.ts # DCR query analysis and section ranking
ā āāā services/
ā ā āāā KnowledgeService.ts # Markdown loader and segment parser
ā āāā tools/
ā ā āāā index.ts # Tool schema definitions and handlers
ā āāā index.ts # Server entry point, transport & handlers
āāā package.json
āāā tsconfig.json
āāā README.md # Project documentation (this file)
š ļø Getting Started
Prerequisites
- Node.js (v18.0.0 or higher recommended)
- npm (v9.0.0 or higher)
Installation
Clone the repository and install the dependencies:
npm install
Build
Compile the TypeScript codebase to the build/ directory:
npm run build
āļø Running the Server
Start the MCP Server on standard I/O (Stdio):
npm start
For development with hot-reloading:
npm run dev
š Client Configuration
To connect this server to commonly used MCP clients:
1. Claude Desktop
Add the server configuration to your claude_desktop_config.json (located at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"akib-profile-server": {
"command": "node",
"args": [
"d:/text/jpg/Projects/knowledge/build/index.js"
],
"env": {}
}
}
}
2. Cursor IDE
- Open Cursor Settings -> Features -> MCP.
- Click + Add New MCP Server.
- Fill in the configuration:
- Name:
Akib Profile Server - Type:
stdio - Command:
node d:/text/jpg/Projects/knowledge/build/index.js
- Name:
- Click Save.
3. Claude Code (CLI)
Add the server using the mcp command:
claude mcp add akib-profile-server node d:/text/jpg/Projects/knowledge/build/index.js
š How to Test
Using the MCP Inspector
You can test the server interactively by running the MCP Inspector:
npx @modelcontextprotocol/inspector node build/index.js
Manual Verification via Stdio
You can verify the JSON-RPC interface by piping requests to stdin:
-
List Tools:
echo {"jsonrpc":"2.0","method":"tools/list","id":1,"params":{}} | node build/index.js -
Query Profile (DCR in action):
echo {"jsonrpc":"2.0","method":"tools/call","id":2,"params":{"name":"query_profile","arguments":{"query":"What databases does Akib know?"}}} | node build/index.js -
List Prompts:
echo {"jsonrpc":"2.0","method":"prompts/list","id":3,"params":{}} | node build/index.js -
Get Prompt:
echo {"jsonrpc":"2.0","method":"prompts/get","id":4,"params":{"name":"akib_profile_assistant","arguments":{"topic":"skills"}}} | node build/index.js
š” Architectural Highlights
- Granular Parsing:
KnowledgeServicesplits markdown files by headings, parsing them into indexableKnowledgeSectionblocks. This ensures high-granularity DCR mapping. - Smart Token & Synonym Routing:
DynamicContextRetrievertokenizes query keywords, strips stopwords, and uses a keyword-to-file boost matrix combined with bidirectional heading/content string matches. - Robust Path Security: Target resource URIs are normalized and restricted within the root
knowledge/directory to prevent directory traversal vulnerabilities.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.