TalkAPI

TalkAPI

Enables conversational API testing via MCP, allowing users to make HTTP requests, decode JWT tokens, and validate JSON schemas through natural language.

Category
Visit Server

README

TalkAPI πŸš€

Conversational API Testing via Model Context Protocol (MCP)

MCP Badge MCP Powered Timeline License


TalkAPI - Conversational API Testing

Built by RAJ

TalkAPI is an MCP (Model Context Protocol) server that revolutionizes API testing by replacing traditional tools like Postman with intelligent, conversational workflows. Instead of manually crafting requests, switching between applications, and managing authentication tokens, TalkAPI enables you to test your APIs through natural language conversations directly within Claude Desktop.

The server intelligently handles complex scenarios like authentication flows, token extraction, request chaining, and response validationβ€”all through simple conversational prompts. Whether you're testing local development APIs, debugging authentication issues, or validating API contracts, TalkAPI transforms the tedious process of API testing into a seamless, conversational experience. The LLM automatically extracts tokens from login responses, adds them to subsequent requests, analyzes error messages to suggest fixes, and validates responses against JSON schemasβ€”all without you having to write a single line of configuration code.

Claude Desktop Integration

Example: Making API requests through Claude Desktop with automatic error correction

Features

  • make_request - HTTP request handler (GET, POST, PUT, PATCH, DELETE)
  • decode_jwt - JWT token decoder with expiration checking
  • validate_json_schema - JSON schema validator for API responses

The LLM automatically handles token extraction, header management, and response analysis.

Installation

  1. Install dependencies globally:
pip install -r requirements.txt
  1. Test the server:
python server.py

The server should start and wait for connections. Press Ctrl+C to stop.

Setup Claude Desktop

  1. Open Claude Desktop config file:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add this configuration (replace the path with your project location):

{
  "mcpServers": {
    "talk-api": {
      "command": "python",
      "args": ["C:\\Projects2\\TalkAPI\\server.py"],
      "cwd": "C:\\Projects2\\TalkAPI"
    }
  }
}

Important: Use absolute paths. On Windows, use double backslashes \\ or forward slashes /.

  1. Restart Claude Desktop completely.

  2. Verify connection: In Claude Desktop, go to Settings β†’ Developer. You should see "talk-api" listed and connected.

Making Requests

Simply describe what you want in Claude Desktop chat. The LLM will use the tools automatically.

Examples

Simple GET request:

Make a GET request to https://httpbin.org/json

Test local API:

Get all users from http://localhost:8000/api/users

Login flow:

Login to http://localhost:8000/api/login with username 'admin' and password 'secret', then get my dashboard

Decode JWT:

Decode this JWT token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Validate response:

Check if the response from /api/users matches a schema where each user has an id (integer) and name (string)

Response Format

All responses include:

  • status_code - HTTP status code
  • response_time_ms - Response time in milliseconds
  • headers - Response headers
  • body - Response body (parsed JSON or text)
  • analysis_hint - Debugging suggestions for errors

Troubleshooting

Server not connecting:

  • Verify Python path: python --version
  • Check file paths are absolute in config
  • Ensure dependencies are installed: pip install -r requirements.txt
  • Restart Claude Desktop after config changes

Module not found:

pip install -r requirements.txt

Server disconnects:

  • Check Claude Desktop logs (Settings β†’ Developer β†’ Open Logs Folder)
  • Verify server starts manually: python server.py
  • Ensure all imports work: python -c "import tools; import utils"

Project Structure

TalkAPI/
β”œβ”€β”€ server.py              # Main MCP server
β”œβ”€β”€ tools/                 # Tool implementations
β”‚   β”œβ”€β”€ make_request.py
β”‚   β”œβ”€β”€ decode_jwt.py
β”‚   └── validate_json_schema.py
β”œβ”€β”€ utils.py               # Utility functions
└── requirements.txt       # Dependencies

Author

RAJ - Built with ❀️ for the developer community

License

MIT

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