Skip to main content
Glama

MCP Login Server

by nieperdragon
  • Apple
  • Linux

MCP Login Server

A Model Context Protocol (MCP) server that provides automated login functionality for http://localhost using predefined credentials. This server is designed to work with browser automation tools like the Playwright MCP server.

Features

  • Automated Login: Provides tools to perform login operations with predefined credentials
  • Playwright Integration: Designed to work with the Playwright MCP server for browser automation
  • Connection Testing: Includes tools to test connectivity to the target URL
  • Credential Management: Secure handling of login credentials
  • Extensible Architecture: Easy to add new tools with separated tool definitions

Project Structure

src/ ├── index.ts # Main server setup and entry point ├── tools.ts # Tool definitions and registration └── index.js # Compiled JavaScript (auto-generated)

The codebase is structured for easy extensibility:

  • index.ts: Contains the main server setup, startup logic, and process management
  • tools.ts: Contains all tool definitions, registration functions, and configuration
  • ADDING_TOOLS.md: Detailed guide for adding new tools to the server

Installation

npm install npm run build

Usage

Running the Server

npm start

Or for development:

npm run dev

Available Tools

The server provides the following MCP tools:

  1. perform_login - Performs automated login to http://localhost using predefined credentials
  2. get_login_credentials - Returns the login credentials for verification
  3. test_connection - Tests if the target URL is accessible

Configuration

The server is configured with the following credentials:

  • Target URL: http://localhost
  • Username: admin
  • Password: AIWorkshopJuly!25

These credentials are configured for the OrangeHRM system running on localhost.

MCP Configuration

To use this server with an MCP client (like Claude for Desktop), add the following configuration:

Windows

{ "mcpServers": { "login-server": { "command": "node", "args": ["C:\\ABSOLUTE\\PATH\\TO\\PROJECT\\build\\index.js"] } } }

macOS/Linux

{ "mcpServers": { "login-server": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/PROJECT/build/index.js"] } } }

Integration with Playwright MCP Server

This server is designed to work alongside the Playwright MCP server for complete browser automation. The perform_login tool provides the necessary information and steps that can be executed by the Playwright MCP server.

Example Workflow

  1. Use the test_connection tool to verify the target URL is accessible
  2. Use the perform_login tool to get login instructions
  3. Use Playwright MCP server tools to execute the browser automation steps

Development

Project Structure

src/ ├── index.ts # Main server implementation ├── types.ts # TypeScript type definitions (if any) build/ # Compiled JavaScript output .github/ # GitHub configuration ├── copilot-instructions.md # Copilot development guidelines

Building

npm run build

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm start - Run the compiled server
  • npm run dev - Build and run in development mode
  • npm run clean - Clean build directory

Dependencies

  • @modelcontextprotocol/sdk - MCP SDK for TypeScript
  • zod - Runtime type validation
  • typescript - TypeScript compiler

Error Handling

The server includes comprehensive error handling for:

  • Connection failures
  • Invalid credentials
  • Network timeouts
  • MCP protocol errors

Security

  • Credentials are stored as constants in the code
  • No sensitive data is logged to stdout (only to stderr for debugging)
  • Connection testing uses safe HTTP HEAD requests

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

License

ISC License

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Provides automated login functionality for localhost web applications using predefined credentials, designed to work with browser automation tools like the Playwright MCP server.

  1. Features
    1. Project Structure
      1. Installation
        1. Usage
          1. Running the Server
          2. Available Tools
          3. Configuration
        2. MCP Configuration
          1. Windows
          2. macOS/Linux
        3. Integration with Playwright MCP Server
          1. Example Workflow
        4. Development
          1. Project Structure
          2. Building
          3. Scripts
        5. Dependencies
          1. Error Handling
            1. Security
              1. Contributing
                1. License

                  Related MCP Servers

                  • A
                    security
                    F
                    license
                    A
                    quality
                    A server that enables browser automation using Playwright, allowing interaction with web pages, capturing screenshots, and executing JavaScript in a browser environment through LLMs.
                    Last updated -
                    12
                    10,680
                    1
                    TypeScript
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A MCP server that provides browser automation tools, allowing users to navigate websites, take screenshots, click elements, fill forms, and execute JavaScript through Playwright.
                    Last updated -
                    Python
                    Apache 2.0
                    • Apple
                  • A
                    security
                    A
                    license
                    A
                    quality
                    A browser automation server providing Playwright capabilities for controlling web browsers, capturing screenshots, extracting content, and performing complex interactions through an MCP interface.
                    Last updated -
                    6
                    Python
                    Apache 2.0
                    • Apple
                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages, take screenshots, generate test code, scrape web content, and execute JavaScript in real browser environments.
                    Last updated -
                    31
                    10,680
                    TypeScript
                    MIT License
                    • Linux
                    • Apple

                  View all related MCP servers

                  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/nieperdragon/custom_mcp'

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