MCP server/search

Alayman MCP Server

Access articles from alayman.io via natural language

JenHsuan/alayman-mcp-ts ↗by JenHsuanupdated
Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

git clone https://github.com/JenHsuan/alayman-mcp-ts
cd alayman-mcp-ts
npm install
npm run build
2

Register it in Claude Code

claude mcp add alayman-mcp -- node /absolute/path/to/alayman-mcp-ts/build/index.js

Replace any placeholder paths in the command with the real path on your machine.

3

Make your agent remember this setup

alayman-mcp's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

  • Fetch articles from alayman.io API
  • Support for keyword-based search filtering
  • Pagination support via limit and offset parameters
  • Built with TypeScript and Zod validation
  • Compatible with Claude Code and other STDIO-based MCP clients

Tools 1

fetch-articlesFetches articles from the alayman.io API with optional filtering and pagination.

Try it

List all articles from alayman.io
Find all Angular articles from alayman
Show me the 10 most recent articles
Get articles 20-40 from alayman
Search for React articles and limit to 5 results
Original README from JenHsuan/alayman-mcp-ts

Alayman MCP Server

A Model Context Protocol (MCP) server that provides access to articles from alayman.io via STDIO transport for use with Claude Code and other MCP clients.

Features

  • Tool: fetch-articles - Fetch articles from the alayman.io API with optional filtering
  • STDIO Transport - Compatible with Claude Code and other STDIO-based MCP clients
  • Type-safe - Built with TypeScript and Zod validation

Installation

npm install

Building

npm run build

Adding to Claude Code

Follow these steps to add the Alayman MCP server to Claude Code:

Step 1: Build the Project

First, clone the repository and build the project:

git clone <repository-url>
cd alayman-mcp-ts
npm install
npm run build

Step 2: Locate Your Claude Code Configuration File

The configuration file location depends on your operating system:

  • macOS/Linux: ~/.config/claude/config.json
  • Windows: %APPDATA%\claude\config.json

If the file doesn't exist, create it with an empty JSON object: {}

Step 3: Add the MCP Server Configuration

Edit the configuration file and add the mcpServers section. Important: Use the absolute path to your project's build directory.

{
  "mcpServers": {
    "alayman": {
      "command": "node",
      "args": [
        "/absolute/path/to/alayman-mcp-ts/build/index.js"
      ]
    }
  }
}

Example for macOS/Linux:

{
  "mcpServers": {
    "alayman": {
      "command": "node",
      "args": [
        "/Users/yourname/Projects/alayman-mcp-ts/build/index.js"
      ]
    }
  }
}

Example for Windows:

{
  "mcpServers": {
    "alayman": {
      "command": "node",
      "args": [
        "C:\\Users\\yourname\\Projects\\alayman-mcp-ts\\build\\index.js"
      ]
    }
  }
}

Step 4: Restart Claude Code

Completely restart Claude Code (quit and reopen) for the changes to take effect.

Step 5: Verify Installation

You can verify the MCP server is working by asking Claude:

  • "List all alayman's articles"
  • "Fetch articles about React"
  • "Show me the latest 5 articles from alayman"

Usage

Once the MCP server is configured, you can interact with it naturally through Claude Code. The server provides the fetch-articles tool that Claude can use automatically based on your requests.

Example Queries

Get all articles:

List all articles from alayman.io

Search for specific topics:

Find all Angular articles from alayman

Limit results:

Show me the 10 most recent articles

Pagination:

Get articles 20-40 from alayman

How It Works

When you make a request related to alayman.io articles, Claude Code will automatically:

  1. Recognize that it should use the fetch-articles tool
  2. Call the MCP server with appropriate parameters
  3. Format and present the results to you

You don't need to manually invoke the tool - just ask naturally!

Available Tools

fetch-articles

Fetches articles from the alayman.io API with optional filtering and pagination.

Parameters:

Parameter Type Required Description
limit number No Maximum number of articles to return (default: 20)
offset number No Number of articles to skip for pagination (default: 0)
search string No Search term to filter articles by title, subtitle, or content

Usage Examples:

  1. Fetch all articles (default):

    {}
    
  2. Search for specific topics:

    {
      "search": "Angular"
    }
    
  3. Limit results:

    {
      "limit": 10
    }
    
  4. Pagination (get articles 20-40):

    {
      "limit": 20,
      "offset": 20
    }
    
  5. Combined search with limit:

    {
      "search": "React",
      "limit": 5
    }
    

Response Format:

{
  "articles": [
    {
      "id": 307,
      "title": "Article Title",
      "subtitle": "Article subtitle...",
      "image": "https://...",
      "url": "https://medium.com/...",
      "name": "Author Name",
      "time": "2025-08-23T06:07:28Z",
      "readtime": "5 min read",
      "category": 1,
      "description": "",
      "shareCount": 0,
      "checkCount": 3
    }
  ],
  "total": 30,
  "offset": 0,
  "limit": 20,
  "has_more": true
}

Response Fields:

  • articles: Array of article objects
  • total: Total number of articles matching the query
  • offset: Current pagination offset
  • limit: Maximum articles returned
  • has_more: Boolean indicating if more articles are available

Project Structure

alayman-mcp-ts/
├── src/
│   └── index.ts          # Main server implementation
├── build/                # Compiled JavaScript (generated)
├── package.json          # Project dependencies and scripts
├── tsconfig.json         # TypeScript configuration
├── .gitignore           # Git ignore rules
└── README.md

Frequently Asked Questions

What are the key features of Alayman MCP Server?

Fetch articles from alayman.io API. Support for keyword-based search filtering. Pagination support via limit and offset parameters. Built with TypeScript and Zod validation. Compatible with Claude Code and other STDIO-based MCP clients.

What can I use Alayman MCP Server for?

Quickly finding technical tutorials or articles on specific frameworks like React or Angular. Browsing the latest technical content from alayman.io without leaving the IDE. Integrating curated technical article discovery into AI-assisted development workflows. Retrieving specific article metadata for research or documentation purposes.

How do I install Alayman MCP Server?

Install Alayman MCP Server by running: git clone https://github.com/JenHsuan/alayman-mcp-ts && cd alayman-mcp-ts && npm install && npm run build

What MCP clients work with Alayman MCP Server?

Alayman MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Conare · memory for coding agents

Turn this server into reusable context

Keep Alayman MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Set up free$npx conare@latest