Skip to main content
Glama

Riksarkivet MCP Server

server.py1.39 kB
#!/usr/bin/env python3 """ RA-MCP Server Main entry point for the Riksarkivet MCP server. """ import sys import os # Add the current directory to Python path sys.path.insert(0, os.path.dirname(__file__)) try: # Try relative import first (when used as module) from .mcp_tools import ra_mcp except ImportError: # Fall back to direct import (when run as script) from mcp_tools import ra_mcp def main(): """Main entry point for the server.""" import argparse parser = argparse.ArgumentParser(description="Riksarkivet MCP Server") parser.add_argument('--http', action='store_true', help='Use HTTP/SSE transport instead of stdio') parser.add_argument('--port', type=int, default=8000, help='Port for HTTP transport (default: 8000)') parser.add_argument('--host', default='localhost', help='Host for HTTP transport (default: localhost)') args = parser.parse_args() if args.http: print(f"Starting RA-MCP HTTP/SSE server on http://{args.host}:{args.port}") print(f"Connect with: claude mcp add --transport sse ra-mcp http://{args.host}:{args.port}/sse") ra_mcp.run(transport="sse", host=args.host, port=args.port) else: print("Starting RA-MCP stdio server") print("This mode is for direct integration with Claude Desktop") ra_mcp.run(transport="stdio") if __name__ == "__main__": main()

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/AI-Riksarkivet/ra-mcp'

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