mcp-client-typescript

anasyakubu/mcp-client-typescript

3.2

If you are the rightful owner of mcp-client-typescript and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Docs Server is a Node.js implementation of a Model Context Protocol server that provides a tool to search and fetch documentation snippets for popular AI/ML libraries.

Tools
1
Resources
0
Prompts
0
# MCP Docs Server

This project implements a Model Context Protocol (MCP) server in Node.js that provides a tool to search and fetch documentation snippets for popular AI/ML libraries.

---

## šŸš€ Features

āœ… MCP-compliant server (using `@modelcontextprotocol/sdk`)  
āœ… Tool: **get_docs**  
āœ… Searches Google for latest docs using Serper API  
āœ… Supports:
- LangChain
- LlamaIndex
- OpenAI

āœ… Returns plain text from documentation pages  
āœ… Handles timeouts and search failures gracefully  

---

## šŸ“ Project Structure

mcp-docs-server/ ā”œā”€ā”€ server.js # The MCP server implementation ā”œā”€ā”€ .env # Environment variables └── README.md # This file


---

## āš™ļø Setup

1. **Clone the repository**  
   ```bash
   git clone <repo-url>
   cd mcp-docs-server
  1. Install dependencies

    npm install
    
  2. Create a .env file

    SERPER_API_KEY=your_serper_api_key
    
  3. Run the MCP server

    node server.js
    

šŸ› ļø Usage

The server exposes one tool:

get_docs

  • Description: Searches the latest documentation for a given query and library.

  • Arguments:

    • query (string): e.g. "Chroma DB"
    • library (string): one of "langchain", "llama-index", "openai"
  • Returns: Plain text content fetched from the search results.

Example usage from a compatible MCP client:

node client.js path/to/server.js

šŸ“¦ Dependencies

  • @modelcontextprotocol/sdk
  • dotenv
  • httpx
  • jsdom

šŸ“ Notes

  • The MCP server uses the Serper API for Google search.
  • To get a Serper API key, visit serper.dev.

šŸ¤ Contributing

Feel free to open issues or submit pull requests!


šŸ“„ License

MIT License.


šŸ”— Links